Menu

#229 style-tag should not be allowed in body in HTML5

v2.30
open-accepted
nobody
None
5
2023-06-19
2021-12-22
No

HTMLCleaner defines the style-tag as being allowed both in the HTML body and head for HTML5. The current version of the HTML5 standard says that the style element cannot be used in the body, though. It was only allowed if the scoped attribute was present apparently, and the scoped attribute is deprecated according to MDN and not supported by the current version of any browser. Therefore, I think HTMLCleaner also shouldn't allow style-tags in the HTML body.

Discussion

  • Scott Wilson

    Scott Wilson - 2023-04-29
    • status: open --> open-accepted
    • Group: v2.26 --> v2.28
     
  • Scott Wilson

    Scott Wilson - 2023-04-29

    Fixed; will be in 2.28 release

     
  • Scott Wilson

    Scott Wilson - 2023-06-19
    • Group: v2.28 --> v2.30
     

Log in to post a comment.