html_validator icon indicating copy to clipboard operation
html_validator copied to clipboard

Style-Tag in body not recognized

Open DragonSkills99 opened this issue 5 years ago • 3 comments

Hello again,

another issue is, that your tool does not recognize style tags in body which is forbidden in html5 standard.

Greetings DragonSkills99

DragonSkills99 avatar Mar 12 '19 12:03 DragonSkills99

Thanks for reporting the issue. I check this.

mgueury avatar Mar 15 '19 07:03 mgueury

For reference: https://html.spec.whatwg.org/multipage/semantics.html#the-style-element And: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style

Notice that the reading of the spec from Mozilla point of view: <<The

The reason behind this is the scoped attribute of the style.

Please read this article, and respond with your comments: https://stackoverflow.com/questions/28633038/what-is-the-current-state-of-the-scoped-attribute-for-the-style-element-in-htm

Thanks,

mgueury avatar Mar 15 '19 07:03 mgueury

Dawned, it seems that it has been removed :-)

https://caniuse.com/#feat=style-scoped

mgueury avatar Mar 15 '19 07:03 mgueury