Issue with preload links feature
-
Hi!
I have a problem with the new “preload links feature” as it throws javascript errors upon links without “href” attribute, also the same issue persists if the “href” value is not an absolute/full URL:
Uncaught TypeError: URL constructor: /support/ is not a valid URL.
or
Uncaught TypeError: can’t access property “value”, e.target.attributes.href is undefined
W3C says, in HTML5, an a element without href attribute is still valid and it’s considered to represent a placeholder hyperlink: https://www.w3.org/wiki/Elements/a
I guess the new preload links feature needs an additional validation to check whether the “a” element contains a valid link.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Issue with preload links feature’ is closed to new replies.