Skip to content

Tags: gptenv/html5ever-wasm

Tags

html5ever-v0.40.1

Toggle html5ever-v0.40.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump version number to 0.40.1 (servo#786)

Prepare html5ever patch release for servo#784

Signed-off-by: Simon Sapin <simon@igalia.com>

xml5ever-v0.40.0

Toggle xml5ever-v0.40.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare prefix and local name when looking for duplicate attributes (s…

…ervo#780)

The duplicate check compared the raw attribute name we had just read
against the local names of the attributes already on the tag. The stored
ones have been through process_qname by then, so xml:lang is sitting
there as prefix "xml" with local name "lang", and reading a plain lang
right after it matched and got rejected as a duplicate.

That is why it was order dependent. Writing lang first and xml:lang
second was fine, because the raw name "xml:lang" never matches the local
name "lang".

Namespaces in XML section 6.3 says attributes are the same only when
their expanded names are the same, and xml:lang and lang have different
expanded names, so both orderings should parse cleanly. This also shows
up on the WPT test table-align-float.xhtml, whose root element carries
both.

So process the name first and compare the prefix along with the local
name. Real duplicates, including two attributes with the same prefix,
are still reported.

The tokenizer has no namespace bindings yet, they are resolved later in
XmlTreeBuilder::bind_qname, so two different prefixes bound to the same
namespace still slip through here. That is a separate thing and it needs
to be handled in the tree builder.

Fixes servo#775

markup5ever-v0.40.0

Toggle markup5ever-v0.40.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare prefix and local name when looking for duplicate attributes (s…

…ervo#780)

The duplicate check compared the raw attribute name we had just read
against the local names of the attributes already on the tag. The stored
ones have been through process_qname by then, so xml:lang is sitting
there as prefix "xml" with local name "lang", and reading a plain lang
right after it matched and got rejected as a duplicate.

That is why it was order dependent. Writing lang first and xml:lang
second was fine, because the raw name "xml:lang" never matches the local
name "lang".

Namespaces in XML section 6.3 says attributes are the same only when
their expanded names are the same, and xml:lang and lang have different
expanded names, so both orderings should parse cleanly. This also shows
up on the WPT test table-align-float.xhtml, whose root element carries
both.

So process the name first and compare the prefix along with the local
name. Real duplicates, including two attributes with the same prefix,
are still reported.

The tokenizer has no namespace bindings yet, they are resolved later in
XmlTreeBuilder::bind_qname, so two different prefixes bound to the same
namespace still slip through here. That is a separate thing and it needs
to be handled in the tree builder.

Fixes servo#775

html5ever-v0.40.0

Toggle html5ever-v0.40.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare prefix and local name when looking for duplicate attributes (s…

…ervo#780)

The duplicate check compared the raw attribute name we had just read
against the local names of the attributes already on the tag. The stored
ones have been through process_qname by then, so xml:lang is sitting
there as prefix "xml" with local name "lang", and reading a plain lang
right after it matched and got rejected as a duplicate.

That is why it was order dependent. Writing lang first and xml:lang
second was fine, because the raw name "xml:lang" never matches the local
name "lang".

Namespaces in XML section 6.3 says attributes are the same only when
their expanded names are the same, and xml:lang and lang have different
expanded names, so both orderings should parse cleanly. This also shows
up on the WPT test table-align-float.xhtml, whose root element carries
both.

So process the name first and compare the prefix along with the local
name. Real duplicates, including two attributes with the same prefix,
are still reported.

The tokenizer has no namespace bindings yet, they are resolved later in
XmlTreeBuilder::bind_qname, so two different prefixes bound to the same
namespace still slip through here. That is a separate thing and it needs
to be handled in the tree builder.

Fixes servo#775

atoms-v0.3.0

Toggle atoms-v0.3.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Compare prefix and local name when looking for duplicate attributes (s…

…ervo#780)

The duplicate check compared the raw attribute name we had just read
against the local names of the attributes already on the tag. The stored
ones have been through process_qname by then, so xml:lang is sitting
there as prefix "xml" with local name "lang", and reading a plain lang
right after it matched and got rejected as a duplicate.

That is why it was order dependent. Writing lang first and xml:lang
second was fine, because the raw name "xml:lang" never matches the local
name "lang".

Namespaces in XML section 6.3 says attributes are the same only when
their expanded names are the same, and xml:lang and lang have different
expanded names, so both orderings should parse cleanly. This also shows
up on the WPT test table-align-float.xhtml, whose root element carries
both.

So process the name first and compare the prefix along with the local
name. Real duplicates, including two attributes with the same prefix,
are still reported.

The tokenizer has no namespace bindings yet, they are resolved later in
XmlTreeBuilder::bind_qname, so two different prefixes bound to the same
namespace still slip through here. That is a separate thing and it needs
to be handled in the tree builder.

Fixes servo#775

web-atoms-v0.2.4

Toggle web-atoms-v0.2.4's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Add shadowrootslotassignment atom (servo#736)

Signed-off-by: Simon Wülker <simon.wuelker@arcor.de>

html5ever-v0.35.0

Toggle html5ever-v0.35.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Simplify version management (servo#637)

Signed-off-by: Nico Burns <nico@nicoburns.com>

xml5ever-v0.23.0

Toggle xml5ever-v0.23.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump match_token to 0.2.0; html5ever to 0.32.1; xml5ever to 0.23 (ser…

…vo#625)

Signed-off-by: Nico Burns <nico@nicoburns.com>

match_token-v0.2.0

Toggle match_token-v0.2.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump match_token to 0.2.0; html5ever to 0.32.1; xml5ever to 0.23 (ser…

…vo#625)

Signed-off-by: Nico Burns <nico@nicoburns.com>

markup5ever-v0.16.2

Toggle markup5ever-v0.16.2's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
Bump match_token to 0.2.0; html5ever to 0.32.1; xml5ever to 0.23 (ser…

…vo#625)

Signed-off-by: Nico Burns <nico@nicoburns.com>