[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: mozilla.org, 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•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
Pushed to try https://treeherder.mozilla.org/#/jobs?repo=try&revision=d8643d4b5ae2c58478f1ac1656e0c18f52d9d60e
Assignee | ||
Comment 2•5 years ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=3a04ed10903c11e049afa608611c72e4f492644f
Assignee | ||
Comment 3•5 years ago
|
||
Failed to get results from try push
Pushed by james@hoppipolla.co.uk: https://hg.mozilla.org/integration/mozilla-inbound/rev/150b90b923e5 [wpt PR 16703] - XMLSerializer: Don't add unnecessary prefix to an element in the default namespace, a=testonly
Comment 5•5 years ago
|
||
bugherder |
Description
•