Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

_inputstream.EncodingParser fails to parse short bogus comments (prescan) #427

Open
@openandclose

Description

@openandclose

I thinkabrupt-closing-of-empty-comment ('<!-->' and'<!--->')
should be treated as normal comments in prescan as well.

for'<!-->', the spec states rather explicitly.

The two 0x2D bytes can be the same as those in the '<!--' sequence.'

prescan:
https://html.spec.whatwg.org/multipage/parsing.html#prescan-a-byte-stream-to-determine-its-encoding
abrupt-closing-of-empty-comment:
https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-closing-of-empty-comment

C.f.
jsdom/html-encoding-sniffer has the same bug.
jsdom/html-encoding-sniffer#4
Validator treats them as comments.

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


      [8]ページ先頭

      ©2009-2025 Movatter.jp