[wpt-sync] Sync PR 16703 - XMLSerializer: Don't add unnecessary prefix to an element in the default namespace
Categories
(Core :: DOM: Core & HTML, defect, P4)
Tracking
()
Tracking | Status | |
---|---|---|
firefox69 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 16703 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/16703
Details from upstream follow.
Kent Tamura <tkent@chromium.org> wrote:
XMLSerializer: Don't add unnecessary prefix to an element in the default namespace
This CL fixes a regression by crrev.com/632459.
Suppose that we have the following XML document:
\<root xmlns:x="uri1">
\<table xmlns="uri1"/>
\</root>
XMLSerializer generated the following result:
\<root xmlns:x="uri1">
\<x:table xmlns="uri1"/>
\</root>We don't need to run "retrieving a preferred prefix string" algorithm if
the element has no prefix and its namespace matches to the default
namespace.This is an error of the specification, and Edge, Firefox, and Safari
match to this CL's behavior. This CL adds a testcase following the
specification error, and the testcase fails with all major browsers.Bug: 958298
Change-Id: I3af9e643a9f91221e56024192f7257a82b6f18cd
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1598929
Reviewed-by: Yoshifumi Inoue \<yosin@chromium.org>
Commit-Queue: Kent Tamura \<tkent@chromium.org>
Cr-Commit-Position: refs/heads/master@{#657586}
Assignee | ||
Updated•6 years ago
|
Assignee | ||
Comment 1•6 years ago
|
||
Assignee | ||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 5•6 years ago
|
||
bugherder |
Description
•