Open
Description
It is possible to place other elements, such as images in a <noscript>
tag, however browsers are smart enough to not process or render any child element of the <noscript>
tag. Therefor an <img>
tag becomes text, which is not visible to the end user, but is accessible via the DOM. In a case where the only contents of a <noscript>
tag is only an <img>
, HTML_CodeSniffer could flag the <img>
as a contrast error because it now text (although no text would appear if javascript was turned off).
So my question is, should HTML_CodeSniffer ignore the <noscript>
tag because javascript will always be enabled when running the library.