Skip to content

Inconsistent attribute quote handling #125

Description

@brody2consult

I discovered this in a custom assert.skip call in test/html/normalize.test.js.

new DOMParser().parseFromString('<r><Label onClick="doClick..>Hello, World</Label></r>','text/html') (missing end quote in onClick attribute) leads to this with &lt;:

<r xmlns="http://www.w3.org/1999/xhtml">&lt;Label onClick="doClick..>Hello, World</r>

while new DOMParser().parseFromString('<Label onClick=doClick..">Hello, World</Label>','text/html') leads to this (looks correct):

<Label onClick="doClick.." xmlns="http://www.w3.org/1999/xhtml">Hello, World</Label>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingerror handlinghelp-wantedExternal contributions welcomeneeds investigationInformation is missing and needs to be researchedxml:not well-formedhttps://www.w3.org/TR/xml11/#dt-wellformed

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    Status
    Done

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions