RESOLVED FIXED 15734
fast/xpath/namespace-vs-predicate.xhtml fails unexpectedly in no-SVG build
https://bugs.webkit.org/show_bug.cgi?id=15734
Summary fast/xpath/namespace-vs-predicate.xhtml fails unexpectedly in no-SVG build
Mark Rowe (bdash)
Reported 2007-10-28 05:29:33 PDT
http://build.webkit.org/results/trunk-mac-intel-nosvg/2750/results.html shows that fast/xpath/namespace-vs-predicate.xhtml is failing on the no-SVG buildbot. The actual output contains the following error: CONSOLE MESSAGE: line 38: TypeError: Null value This is emitted by the following line of code: // Remove this node from the document so it doesn't make the DumpRenderTree output // different when SVG is enabled and disabled. document.getElementById("r_00").parentNode.removeChild(document.getElementById("r_00")); As the comment describes, this is intended to ensure that the <svg:g> node is removed to maintain identical rendering in SVG and no-SVG builds. It is not clear why this is throwing an exception.
Attachments
unknown namespace test case (554 bytes, application/xhtml+xml)
2007-10-28 12:45 PDT, Alexey Proskuryakov
no flags
fix the test (1.28 KB, patch)
2007-12-28 12:27 PST, Alexey Proskuryakov
mitz: review+
Alexey Proskuryakov
Comment 1 2007-10-28 10:22:35 PDT
Do you know when this regressed? I'm not quite sure what kind of a bug this is: Firefox seems to have a similar problem with elements in unknown namespaces.
Mark Rowe (bdash)
Comment 2 2007-10-28 10:28:38 PDT
Sorry I don't. It's probably been like that for quite a while now.
Alexey Proskuryakov
Comment 3 2007-10-28 12:45:48 PDT
Created attachment 16916 [details] unknown namespace test case Firefox and TOT WebKit behave identically on this test (actually, Tiger WebKit does the same). I still don't see why.
Alexey Proskuryakov
Comment 4 2007-12-28 12:27:00 PST
Created attachment 18150 [details] fix the test It's actually clear: we do not support xml:id (see bug 16505), and plain "id" is only treated as ID in HTML and SVG content (unless a doctype says that some attribute is an ID, but it doesn't in this case, and we don't even support that, bug 12971). A no-SVG build isn't supposed to know about SVG id attribute.
mitz
Comment 5 2007-12-28 12:33:10 PST
Comment on attachment 18150 [details] fix the test r=me
Alexey Proskuryakov
Comment 6 2007-12-28 23:52:33 PST
Committed revision 29024.
Lucas Forschler
Comment 7 2019-02-06 09:03:08 PST
Mass moving XML DOM bugs to the "DOM" Component.
Note You need to log in before you can comment on or make changes to this bug.