Skip to content

Tidy fails on style block with comment block #280

Closed
@CMB

Description

@CMB

When Tidy encounters a style block with a comment block, it does not
parse the comment block correctly.
In fact, it will be confused if the comment block contains HTML, such
as an opening style tag.

Example:
http://the-brannons.com/styletest1.html

This also affects script tags, apparently.

Using a comment inside style or script was a way to hide the
contents from old browsers that don't understand the style or script tags,
so that they didn't try to render their contents as text.
It's apparently still being used in some HTML 5 pages. How should it
be handled today, by Tidy?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions