Skip to content

<noscript> false positive #127

Open
Open
@mfairchild365

Description

@mfairchild365

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).

src: https://stackoverflow.com/questions/14719111/is-an-image-within-a-noscript-tag-only-downloaded-if-javascript-is-disabled/14723273#14723273

So my question is, should HTML_CodeSniffer ignore the <noscript> tag because javascript will always be enabled when running the library.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions