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

Only generate an attribute prefix if required #30

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from

Conversation

bwrrp
Copy link

@bwrrp bwrrp commented Jul 13, 2017

If implemented as specified, the prefix set for an attribute in the DOM would never be preserved during serialization. This change only generates the new prefix if the prefix is either missing (which is not allowed for namespaced attributes), or if it conflicts with another local namespace definition of the prefix for a different namespace.

Fixes #29

If implemented as specified, the prefix set for an attribute in the DOM
would never be preserved during serialization. This change only
generates the new prefix if the prefix is either missing (which is not
allowed for namespaced attributes), or if it conflicts with another
local namespace definition of the prefix for a different namespace.

Fixes w3c#29
@bwrrp bwrrp force-pushed the preserve-attribute-prefixes branch from eae9f35 to 97e7bb3 Compare October 31, 2018 11:13
@cscott
Copy link

cscott commented Jul 2, 2021

I verified that this spec change matches what Firefox currently does (see comment on issue #29). A corresponding patch would need to be made to web-platform-tests (also described at issue #29).

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.

Serialization algorithm never preserves attribute prefixes
2 participants