Skip to content

html/syntax/charset/after-bogus-after-1kb.html asserts that <meta charset> after bogus elements are ignored, but the spec says otherwise #56973

@simonwuelker

Description

@simonwuelker

html/syntax/charset/after-bogus-after-1kb.html asserts that a <meta charset> in <head> after a <bogus> element is ignored.

That does not seem conformant with what the specification dictates:

  1. The <bogus> tag is processed in the in head insertion mode. It reaches the "anything else" branch and is reprocessed in the after head insertion mode
  2. The <bogus> tag is processed in the after head insertion mode where it is reprocessed in the in body insertion mode. In there an appropriate html element is inserted.
  3. The <meta charset> tag is processed in the in body insertion mode, which dictates that it should be processed according to the rules of the in head insertion mode. In other words, the <meta charset> tag should be respected by the agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions