Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[attr] Look up attribute by local-name and null-namespace
When the namespace part of the <attr-name> is omitted, it defaults to the null-namespace. We currently implement this with Element:: getAttribute, which gives the wrong result, since it returns the first attribute with the given qualified name [1]. Note: the lookup is now effectively the same as what "old" (non-substitution) attr() did. Note: while Element::getAttribute lower-cases the attribute name (for HTML documents), Element::getAttributeNS does not [2]. [1] https://dom.spec.whatwg.org/#concept-element-attributes-get-by-name [2] https://dom.spec.whatwg.org/#concept-element-attributes-get-by-namespace Issue: 387281256 Change-Id: If42dbe210402b95f03c3d7419c161970b6c3f612 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/6140914 Reviewed-by: Rune Lillesveen <[email protected]> Commit-Queue: Anders Hartvoll Ruud <[email protected]> Cr-Commit-Position: refs/heads/main@{#1401853}
- Loading branch information