html5ever icon indicating copy to clipboard operation
html5ever copied to clipboard

Serialize unrecognized namespaces according to the prefix used

Open kmcallister opened this issue 9 years ago • 3 comments

We have to query this information from the DOM.

Offshoot of #14.

cc @SimonSapin

kmcallister avatar Apr 06 '15 23:04 kmcallister

As a specific example, the element created by

document.createElementNS("http://example.com/ns", "foo:bar")

should serialize as

<foo:bar></foo:bar>

even though its localName is only bar.

kmcallister avatar Apr 06 '15 23:04 kmcallister

Perhaps an optional prefix should be part of string_cache::namespace::QualName

SimonSapin avatar Apr 07 '15 03:04 SimonSapin

Exactly: https://github.com/servo/string-cache/issues/26

Ms2ger avatar Apr 07 '15 07:04 Ms2ger