Skip to content

End Tags with Attributes #186

@Maltysen

Description

@Maltysen

The tokenizer test case format doesn't have attributes for end tags, and it seems you're supposed to just ignore them and give a parse error (you can see an example in test1 with "<h></h a='b'>").

However, looking at the Tokenization section of the whatwg parsing spec, I don't see any step in the state machine saying to drop the attributes from end tags.

In fact I see a line saying "When an end tag token is emitted with attributes, that is an end-tag-with-attributes parse error." which seems to indicate that you *do* emit end tag tokens with attributes.

Similarly, the table of parse errors just says that the attributes in end tags are ignored and don't make it into the DOM, which again to me suggests that they exist in the token, but not in the DOM.

Is this a deficiency in the tests or am I missing/misunderstanding some part of the spec?

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