Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LibWeb/XML: Set attributes using Element::set_attribute_ns #3138

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alimpfard
Copy link
Contributor

Otherwise we'd end up ignoring attr prefixes and treating them as part of the attribute's local name.
Fixes #3137.

@alimpfard alimpfard marked this pull request as draft January 4, 2025 13:40
AtkinsSJ added a commit to AtkinsSJ/ladybird that referenced this pull request Jan 4, 2025
Parse a qualified name, and use the namespace when looking up the
attribute. Also bring the spec comments up to date, as the syntax
description has changed a bit.

WIP: Waiting for LadybirdBrowser#3138
before the test will pass.
Otherwise we'd end up ignoring attr prefixes and treating them as part
of the attribute's local name.
Fixes LadybirdBrowser#3137.

This is a partial revert of b3fdeef,
but it fixes the underlying issue that it was working around.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Namespaced attributes break XHTML parsing
1 participant