<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[204536] trunk</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://trac.webkit.org/projects/webkit/changeset/204536">204536</a></dd>
<dt>Author</dt> <dd>cdumez@apple.com</dd>
<dt>Date</dt> <dd>2016-08-16 15:56:02 -0700 (Tue, 16 Aug 2016)</dd>
</dl>

<h3>Log Message</h3>
<pre>Align isDefaultNamespace() / lookupPrefix() / lookupNamespaceURI() with the specification
https://bugs.webkit.org/show_bug.cgi?id=160911

Reviewed by Ryosuke Niwa.

LayoutTests/imported/w3c:

Rebaseline W3C test now that more checks are passing.

* web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt:

Source/WebCore:

Align isDefaultNamespace() / lookupPrefix() / lookupNamespaceURI() with the specification:
- https://dom.spec.whatwg.org/#dom-node-isdefaultnamespace
- https://dom.spec.whatwg.org/#dom-node-lookupprefix
- https://dom.spec.whatwg.org/#dom-node-lookupnamespaceuri

Our implementation now matches closely the text of the DOM specification
and we pass more W3C tests as it fixes the following bug:
- isDefaultNamespace(null) / isDefaultNamespace('') was not returning true for in cases
  where the node's default namespace was null. Our implementation was returning false
  instead of comparing the node's default namespace (in this case null) with the input
  namespace (in this case null).

No new tests, rebaselined existing test.

* dom/Node.cpp:
(WebCore::locateDefaultNamespace):
(WebCore::Node::isDefaultNamespace):
(WebCore::Node::lookupNamespaceURI):
(WebCore::locateNamespacePrefix):
(WebCore::Node::lookupPrefix):
(WebCore::appendTextContent): Deleted.
(WebCore::Node::textContent): Deleted.
(WebCore::Node::setTextContent): Deleted.
* dom/Node.h:
* xml/NativeXPathNSResolver.cpp:
(WebCore::NativeXPathNSResolver::lookupNamespaceURI):

LayoutTests:

Drop several outdated tests.

* dom/xhtml/level3/core/nodeisdefaultnamespace03-expected.txt: Removed.
* dom/xhtml/level3/core/nodeisdefaultnamespace03.js: Removed.
* dom/xhtml/level3/core/nodeisdefaultnamespace03.xhtml: Removed.
* dom/xhtml/level3/core/nodelookupnamespaceuri08-expected.txt: Removed.
* dom/xhtml/level3/core/nodelookupnamespaceuri08.js: Removed.
* dom/xhtml/level3/core/nodelookupnamespaceuri08.xhtml: Removed.
* dom/xhtml/level3/core/nodelookupnamespaceuri09-expected.txt: Removed.
* dom/xhtml/level3/core/nodelookupnamespaceuri09.js: Removed.
* dom/xhtml/level3/core/nodelookupnamespaceuri09.xhtml: Removed.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsChangeLog">trunk/LayoutTests/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cChangeLog">trunk/LayoutTests/imported/w3c/ChangeLog</a></li>
<li><a href="#trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodelookupNamespaceURIexpectedtxt">trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt</a></li>
<li><a href="#trunkSourceWebCoreChangeLog">trunk/Source/WebCore/ChangeLog</a></li>
<li><a href="#trunkSourceWebCoredomNodecpp">trunk/Source/WebCore/dom/Node.cpp</a></li>
<li><a href="#trunkSourceWebCoredomNodeh">trunk/Source/WebCore/dom/Node.h</a></li>
<li><a href="#trunkSourceWebCorexmlNativeXPathNSResolvercpp">trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp</a></li>
</ul>

<h3>Removed Paths</h3>
<ul>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodeisdefaultnamespace03expectedtxt">trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03-expected.txt</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodeisdefaultnamespace03js">trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.js</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodeisdefaultnamespace03xhtml">trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.xhtml</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri08expectedtxt">trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08-expected.txt</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri08js">trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.js</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri08xhtml">trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.xhtml</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri09expectedtxt">trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09-expected.txt</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri09js">trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.js</a></li>
<li><a href="#trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri09xhtml">trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.xhtml</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkLayoutTestsChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/ChangeLog (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/ChangeLog        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/ChangeLog        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,3 +1,22 @@
</span><ins>+2016-08-16  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Align isDefaultNamespace() / lookupPrefix() / lookupNamespaceURI() with the specification
+        https://bugs.webkit.org/show_bug.cgi?id=160911
+
+        Reviewed by Ryosuke Niwa.
+
+        Drop several outdated tests.
+
+        * dom/xhtml/level3/core/nodeisdefaultnamespace03-expected.txt: Removed.
+        * dom/xhtml/level3/core/nodeisdefaultnamespace03.js: Removed.
+        * dom/xhtml/level3/core/nodeisdefaultnamespace03.xhtml: Removed.
+        * dom/xhtml/level3/core/nodelookupnamespaceuri08-expected.txt: Removed.
+        * dom/xhtml/level3/core/nodelookupnamespaceuri08.js: Removed.
+        * dom/xhtml/level3/core/nodelookupnamespaceuri08.xhtml: Removed.
+        * dom/xhtml/level3/core/nodelookupnamespaceuri09-expected.txt: Removed.
+        * dom/xhtml/level3/core/nodelookupnamespaceuri09.js: Removed.
+        * dom/xhtml/level3/core/nodelookupnamespaceuri09.xhtml: Removed.
+
</ins><span class="cx"> 2016-08-15  Ada Chan  &lt;adachan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Placeholder does not show the first time going into picture-in-picture on video without controls
</span></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodeisdefaultnamespace03expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03-expected.txt (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03-expected.txt        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03-expected.txt        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,2 +0,0 @@
</span><del>-Test        http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisdefaultnamespace03
-Status        Success
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodeisdefaultnamespace03js"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.js (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.js        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.js        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,115 +0,0 @@
</span><del>-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] in the 
-hope that it will be useful, but WITHOUT ANY WARRANTY; without even 
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return &quot;http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodeisdefaultnamespace03&quot;;
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       setImplementationAttribute(&quot;namespaceAware&quot;, true);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, &quot;doc&quot;, &quot;hc_staff&quot;);
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-            catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-
-
-
-        Using isDefaultNamespace on this DocumentType node with the value of the namespaceURI parameter
-        as null check if the value returned is false.
-
-* @author IBM
-* @author Neil Delima
-* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-isDefaultNamespace
-*/
-function nodeisdefaultnamespace03() {
-   var success;
-    if(checkInitialization(builder, &quot;nodeisdefaultnamespace03&quot;) != null) return;
-    var doc;
-      var docType;
-      var isDefault;
-      var nullNSURI = null;
-
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, &quot;doc&quot;, &quot;hc_staff&quot;);
-      docType = doc.doctype;
-
-      isDefault = docType.isDefaultNamespace(nullNSURI);
-      assertFalse(&quot;nodeisdefaultnamespace03&quot;,isDefault);
-
-}
-
-
-
-
-function runTest() {
-   nodeisdefaultnamespace03();
-}
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodeisdefaultnamespace03xhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.xhtml (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.xhtml        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodeisdefaultnamespace03.xhtml        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,73 +0,0 @@
</span><del>-&lt;?xml version=&quot;1.0&quot;?&gt;&lt;?TEST-STYLE PIDATA?&gt;
-&lt;!DOCTYPE html
-   PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
-   &quot;xhtml1-strict.dtd&quot; [
-   &lt;!ENTITY alpha &quot;&amp;#945;&quot;&gt;
-   &lt;!ENTITY beta &quot;&amp;#946;&quot;&gt;
-   &lt;!ENTITY gamma &quot;&amp;#947;&quot;&gt;
-   &lt;!ENTITY delta &quot;&amp;#948;&quot;&gt;
-   &lt;!ENTITY epsilon &quot;&amp;#949;&quot;&gt;
-   &lt;!ENTITY alpha &quot;&amp;#950;&quot;&gt;
-   &lt;!NOTATION notation1 PUBLIC &quot;notation1File&quot;&gt;
-   &lt;!NOTATION notation2 SYSTEM &quot;notation2File&quot;&gt;
-   &lt;!ATTLIST p
-        dir CDATA 'rtl'
-        xmlns:dmstc CDATA #IMPLIED
-        xmlns:nm CDATA #IMPLIED
-        xmlns:emp2 CDATA #IMPLIED&gt;
-   &lt;!ATTLIST html
-                   xmlns:xsi CDATA #IMPLIED
-                   xsi:schemaLocation CDATA #IMPLIED&gt;
-   &lt;!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED&gt;
-   &lt;!ENTITY ent4 &quot;&lt;span xmlns='http://www.w3.org/1999/xhtml'&gt;Element data&lt;/span&gt;&lt;?PItarget PIdata?&gt;&quot;&gt;
-   &lt;!ATTLIST span xmlns CDATA #IMPLIED&gt;
-]&gt;
-&lt;!-- This is comment number 1.--&gt;
-&lt;html xmlns='http://www.w3.org/1999/xhtml'
-        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
-        xsi:schemaLocation=&quot;http://www.w3.org/1999/xhtml hc_staff.xsd&quot;&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;/&gt;&lt;title&gt;hc_staff&lt;/title&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;selfxhtml.js&quot;/&gt;&lt;script charset=&quot;UTF-8&quot; type=&quot;text/javascript&quot; src=&quot;nodeisdefaultnamespace03.js&quot;/&gt;&lt;script type='text/javascript'&gt;function loadComplete() { startTest(); }&lt;/script&gt;&lt;/head&gt;&lt;body onload=&quot;loadComplete()&quot;&gt;
- &lt;p xmlns:dmstc=&quot;http://www.usa.com&quot;&gt;
-  &lt;em&gt;EMP0001&lt;/em&gt;
-  &lt;strong&gt;Margaret Martin&lt;/strong&gt;
-  &lt;code&gt;Accountant&lt;/code&gt;
-  &lt;sup&gt;56,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;1230 North Ave. Dallas, Texas 98551&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:dmstc=&quot;http://www.usa.com&quot;&gt;
-  &lt;em&gt;EMP0002&lt;/em&gt;
-  &lt;strong&gt;Martha Raynolds
-&lt;![CDATA[This is a CDATASection with EntityReference number 2 &amp;ent2;]]&gt;
-&lt;![CDATA[This is an adjacent CDATASection with a reference to a tab &amp;tab;]]&gt;&lt;/strong&gt;
-  &lt;code&gt;Secretary&lt;/code&gt;
-  &lt;sup&gt;35,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;&amp;beta; Dallas, &amp;gamma;
- 98554&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:dmstc=&quot;http://www.netzero.com&quot;&gt;
-  &lt;em&gt;EMP0003&lt;/em&gt;
-  &lt;strong&gt;Roger
- Jones&lt;/strong&gt;
-  &lt;code&gt;Department Manager&lt;/code&gt;
-  &lt;sup&gt;100,000&lt;/sup&gt;
-  &lt;var&gt;&amp;ent4;&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;No&quot; id=&quot;_98553&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;PO Box 27 Irving, texas 98553&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:nm=&quot;http://www.altavista.com&quot;&gt;
-  &lt;em&gt;EMP0004&lt;/em&gt;
-  &lt;strong&gt;Jeny Oconnor&lt;/strong&gt;
-  &lt;code&gt;Personnel Director&lt;/code&gt;
-  &lt;sup&gt;95,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Y&amp;alpha;&quot; id=&quot;_98556&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;27 South Road. Dallas, Texas 98556&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:emp2=&quot;http://www.nist.gov&quot;&gt;
-  &lt;em&gt;EMP0005&lt;/em&gt;
-  &lt;strong&gt;Robert Myers&lt;/strong&gt;
-  &lt;code&gt;Computer Specialist&lt;/code&gt;
-  &lt;sup&gt;90,000&lt;/sup&gt;
-  &lt;var&gt;male&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;1821 Nordic. Road, Irving Texas 98558&lt;/acronym&gt;
- &lt;/p&gt;
-&lt;/body&gt;&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri08expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08-expected.txt (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08-expected.txt        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08-expected.txt        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,2 +0,0 @@
</span><del>-Test        http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupnamespaceuri08
-Status        Success
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri08js"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.js (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.js        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.js        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,116 +0,0 @@
</span><del>-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] in the 
-hope that it will be useful, but WITHOUT ANY WARRANTY; without even 
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return &quot;http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupnamespaceuri08&quot;;
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       setImplementationAttribute(&quot;namespaceAware&quot;, true);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, &quot;doc&quot;, &quot;hc_staff&quot;);
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-            catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-        Invoke lookupNamespaceURI on an Element node with no prefix, which has 2 namespace
-        attribute declarations with and without namespace prefixes and check if the value of the prefix
-        returned by using a valid prefix and an empty prefix as a parameter is a valid
-        namespaceURI or null.
-
-* @author IBM
-* @author Neil Delima
-* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-lookupNamespaceURI
-*/
-function nodelookupnamespaceuri08() {
-   var success;
-    if(checkInitialization(builder, &quot;nodelookupnamespaceuri08&quot;) != null) return;
-    var doc;
-      var elem;
-      var elemList;
-      var namespaceURI;
-      var namespaceURIEmpty;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, &quot;doc&quot;, &quot;hc_staff&quot;);
-      elemList = doc.getElementsByTagName(&quot;p&quot;);
-      elem = elemList.item(0);
-      namespaceURI = elem.lookupNamespaceURI(&quot;dmstc&quot;);
-      assertEquals(&quot;nodelookupnamespaceuri08&quot;,&quot;http://www.usa.com&quot;,namespaceURI);
-       namespaceURIEmpty = elem.lookupNamespaceURI(&quot;&quot;);
-      assertNull(&quot;nodelookupnamespaceprefixEmpty08&quot;,namespaceURIEmpty);
-    
-}
-
-
-
-
-function runTest() {
-   nodelookupnamespaceuri08();
-}
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri08xhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.xhtml (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.xhtml        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri08.xhtml        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,73 +0,0 @@
</span><del>-&lt;?xml version=&quot;1.0&quot;?&gt;&lt;?TEST-STYLE PIDATA?&gt;
-&lt;!DOCTYPE html
-   PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
-   &quot;xhtml1-strict.dtd&quot; [
-   &lt;!ENTITY alpha &quot;&amp;#945;&quot;&gt;
-   &lt;!ENTITY beta &quot;&amp;#946;&quot;&gt;
-   &lt;!ENTITY gamma &quot;&amp;#947;&quot;&gt;
-   &lt;!ENTITY delta &quot;&amp;#948;&quot;&gt;
-   &lt;!ENTITY epsilon &quot;&amp;#949;&quot;&gt;
-   &lt;!ENTITY alpha &quot;&amp;#950;&quot;&gt;
-   &lt;!NOTATION notation1 PUBLIC &quot;notation1File&quot;&gt;
-   &lt;!NOTATION notation2 SYSTEM &quot;notation2File&quot;&gt;
-   &lt;!ATTLIST p
-        dir CDATA 'rtl'
-        xmlns:dmstc CDATA #IMPLIED
-        xmlns:nm CDATA #IMPLIED
-        xmlns:emp2 CDATA #IMPLIED&gt;
-   &lt;!ATTLIST html
-                   xmlns:xsi CDATA #IMPLIED
-                   xsi:schemaLocation CDATA #IMPLIED&gt;
-   &lt;!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED&gt;
-   &lt;!ENTITY ent4 &quot;&lt;span xmlns='http://www.w3.org/1999/xhtml'&gt;Element data&lt;/span&gt;&lt;?PItarget PIdata?&gt;&quot;&gt;
-   &lt;!ATTLIST span xmlns CDATA #IMPLIED&gt;
-]&gt;
-&lt;!-- This is comment number 1.--&gt;
-&lt;html xmlns='http://www.w3.org/1999/xhtml'
-        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
-        xsi:schemaLocation=&quot;http://www.w3.org/1999/xhtml hc_staff.xsd&quot;&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;/&gt;&lt;title&gt;hc_staff&lt;/title&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;selfxhtml.js&quot;/&gt;&lt;script charset=&quot;UTF-8&quot; type=&quot;text/javascript&quot; src=&quot;nodelookupnamespaceuri08.js&quot;/&gt;&lt;script type='text/javascript'&gt;function loadComplete() { startTest(); }&lt;/script&gt;&lt;/head&gt;&lt;body onload=&quot;loadComplete()&quot;&gt;
- &lt;p xmlns:dmstc=&quot;http://www.usa.com&quot;&gt;
-  &lt;em&gt;EMP0001&lt;/em&gt;
-  &lt;strong&gt;Margaret Martin&lt;/strong&gt;
-  &lt;code&gt;Accountant&lt;/code&gt;
-  &lt;sup&gt;56,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;1230 North Ave. Dallas, Texas 98551&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:dmstc=&quot;http://www.usa.com&quot;&gt;
-  &lt;em&gt;EMP0002&lt;/em&gt;
-  &lt;strong&gt;Martha Raynolds
-&lt;![CDATA[This is a CDATASection with EntityReference number 2 &amp;ent2;]]&gt;
-&lt;![CDATA[This is an adjacent CDATASection with a reference to a tab &amp;tab;]]&gt;&lt;/strong&gt;
-  &lt;code&gt;Secretary&lt;/code&gt;
-  &lt;sup&gt;35,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;&amp;beta; Dallas, &amp;gamma;
- 98554&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:dmstc=&quot;http://www.netzero.com&quot;&gt;
-  &lt;em&gt;EMP0003&lt;/em&gt;
-  &lt;strong&gt;Roger
- Jones&lt;/strong&gt;
-  &lt;code&gt;Department Manager&lt;/code&gt;
-  &lt;sup&gt;100,000&lt;/sup&gt;
-  &lt;var&gt;&amp;ent4;&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;No&quot; id=&quot;_98553&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;PO Box 27 Irving, texas 98553&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:nm=&quot;http://www.altavista.com&quot;&gt;
-  &lt;em&gt;EMP0004&lt;/em&gt;
-  &lt;strong&gt;Jeny Oconnor&lt;/strong&gt;
-  &lt;code&gt;Personnel Director&lt;/code&gt;
-  &lt;sup&gt;95,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Y&amp;alpha;&quot; id=&quot;_98556&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;27 South Road. Dallas, Texas 98556&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:emp2=&quot;http://www.nist.gov&quot;&gt;
-  &lt;em&gt;EMP0005&lt;/em&gt;
-  &lt;strong&gt;Robert Myers&lt;/strong&gt;
-  &lt;code&gt;Computer Specialist&lt;/code&gt;
-  &lt;sup&gt;90,000&lt;/sup&gt;
-  &lt;var&gt;male&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;1821 Nordic. Road, Irving Texas 98558&lt;/acronym&gt;
- &lt;/p&gt;
-&lt;/body&gt;&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri09expectedtxt"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09-expected.txt (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09-expected.txt        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09-expected.txt        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,2 +0,0 @@
</span><del>-Test        http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupnamespaceuri09
-Status        Success
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri09js"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.js (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.js        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.js        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,115 +0,0 @@
</span><del>-
-/*
-Copyright Â© 2001-2004 World Wide Web Consortium, 
-(Massachusetts Institute of Technology, European Research Consortium 
-for Informatics and Mathematics, Keio University). All 
-Rights Reserved. This work is distributed under the W3C® Software License [1] in the 
-hope that it will be useful, but WITHOUT ANY WARRANTY; without even 
-the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 
-
-[1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
-*/
-
-
-
-   /**
-    *  Gets URI that identifies the test.
-    *  @return uri identifier of test
-    */
-function getTargetURI() {
-      return &quot;http://www.w3.org/2001/DOM-Test-Suite/level3/core/nodelookupnamespaceuri09&quot;;
-   }
-
-var docsLoaded = -1000000;
-var builder = null;
-
-//
-//   This function is called by the testing framework before
-//      running the test suite.
-//
-//   If there are no configuration exceptions, asynchronous
-//        document loading is started.  Otherwise, the status
-//        is set to complete and the exception is immediately
-//        raised when entering the body of the test.
-//
-function setUpPage() {
-   setUpPageStatus = 'running';
-   try {
-     //
-     //   creates test document builder, may throw exception
-     //
-     builder = createConfiguredBuilder();
-       setImplementationAttribute(&quot;namespaceAware&quot;, true);
-
-      docsLoaded = 0;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      docsLoaded += preload(docRef, &quot;doc&quot;, &quot;hc_staff&quot;);
-        
-       if (docsLoaded == 1) {
-          setUpPageStatus = 'complete';
-       }
-    } catch(ex) {
-            catchInitializationError(builder, ex);
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-
-//
-//   This method is called on the completion of 
-//      each asychronous load started in setUpTests.
-//
-//   When every synchronous loaded document has completed,
-//      the page status is changed which allows the
-//      body of the test to be executed.
-function loadComplete() {
-    if (++docsLoaded == 1) {
-        setUpPageStatus = 'complete';
-    }
-}
-
-
-/**
-* 
-        Invoke lookupNamespaceURI on an Element node with no prefix, whose parent has no prefix and 
-        2 namespace attribute declarations with and without namespace prefixes and check if the value of 
-        the namespaceURI returned by using each prefix as a parameter is valid.
-
-* @author IBM
-* @author Neil Delima
-* @see http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-lookupNamespaceURI
-*/
-function nodelookupnamespaceuri09() {
-   var success;
-    if(checkInitialization(builder, &quot;nodelookupnamespaceuri09&quot;) != null) return;
-    var doc;
-      var elem;
-      var elemList;
-      var namespaceURI;
-      var namespaceURIEmpty;
-      
-      var docRef = null;
-      if (typeof(this.doc) != 'undefined') {
-        docRef = this.doc;
-      }
-      doc = load(docRef, &quot;doc&quot;, &quot;hc_staff&quot;);
-      elemList = doc.getElementsByTagName(&quot;em&quot;);
-      elem = elemList.item(0);
-      namespaceURI = elem.lookupNamespaceURI(&quot;dmstc&quot;);
-      assertEquals(&quot;nodelookupnamespaceuri09&quot;,&quot;http://www.usa.com&quot;,namespaceURI);
-       namespaceURIEmpty = elem.lookupNamespaceURI(&quot;&quot;);
-      assertNull(&quot;nodelookupnamespaceprefixEmpty09&quot;,namespaceURIEmpty);
-    
-}
-
-
-
-
-function runTest() {
-   nodelookupnamespaceuri09();
-}
</del></span></pre></div>
<a id="trunkLayoutTestsdomxhtmllevel3corenodelookupnamespaceuri09xhtml"></a>
<div class="delfile"><h4>Deleted: trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.xhtml (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.xhtml        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/dom/xhtml/level3/core/nodelookupnamespaceuri09.xhtml        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,73 +0,0 @@
</span><del>-&lt;?xml version=&quot;1.0&quot;?&gt;&lt;?TEST-STYLE PIDATA?&gt;
-&lt;!DOCTYPE html
-   PUBLIC &quot;-//W3C//DTD XHTML 1.0 Strict//EN&quot;
-   &quot;xhtml1-strict.dtd&quot; [
-   &lt;!ENTITY alpha &quot;&amp;#945;&quot;&gt;
-   &lt;!ENTITY beta &quot;&amp;#946;&quot;&gt;
-   &lt;!ENTITY gamma &quot;&amp;#947;&quot;&gt;
-   &lt;!ENTITY delta &quot;&amp;#948;&quot;&gt;
-   &lt;!ENTITY epsilon &quot;&amp;#949;&quot;&gt;
-   &lt;!ENTITY alpha &quot;&amp;#950;&quot;&gt;
-   &lt;!NOTATION notation1 PUBLIC &quot;notation1File&quot;&gt;
-   &lt;!NOTATION notation2 SYSTEM &quot;notation2File&quot;&gt;
-   &lt;!ATTLIST p
-        dir CDATA 'rtl'
-        xmlns:dmstc CDATA #IMPLIED
-        xmlns:nm CDATA #IMPLIED
-        xmlns:emp2 CDATA #IMPLIED&gt;
-   &lt;!ATTLIST html
-                   xmlns:xsi CDATA #IMPLIED
-                   xsi:schemaLocation CDATA #IMPLIED&gt;
-   &lt;!ATTLIST acronym xsi:noNamespaceSchemaLocation CDATA #IMPLIED&gt;
-   &lt;!ENTITY ent4 &quot;&lt;span xmlns='http://www.w3.org/1999/xhtml'&gt;Element data&lt;/span&gt;&lt;?PItarget PIdata?&gt;&quot;&gt;
-   &lt;!ATTLIST span xmlns CDATA #IMPLIED&gt;
-]&gt;
-&lt;!-- This is comment number 1.--&gt;
-&lt;html xmlns='http://www.w3.org/1999/xhtml'
-        xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
-        xsi:schemaLocation=&quot;http://www.w3.org/1999/xhtml hc_staff.xsd&quot;&gt;&lt;head&gt;&lt;meta http-equiv=&quot;Content-Type&quot; content=&quot;text/html; charset=UTF-8&quot;/&gt;&lt;title&gt;hc_staff&lt;/title&gt;&lt;script type=&quot;text/javascript&quot; src=&quot;selfxhtml.js&quot;/&gt;&lt;script charset=&quot;UTF-8&quot; type=&quot;text/javascript&quot; src=&quot;nodelookupnamespaceuri09.js&quot;/&gt;&lt;script type='text/javascript'&gt;function loadComplete() { startTest(); }&lt;/script&gt;&lt;/head&gt;&lt;body onload=&quot;loadComplete()&quot;&gt;
- &lt;p xmlns:dmstc=&quot;http://www.usa.com&quot;&gt;
-  &lt;em&gt;EMP0001&lt;/em&gt;
-  &lt;strong&gt;Margaret Martin&lt;/strong&gt;
-  &lt;code&gt;Accountant&lt;/code&gt;
-  &lt;sup&gt;56,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;1230 North Ave. Dallas, Texas 98551&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:dmstc=&quot;http://www.usa.com&quot;&gt;
-  &lt;em&gt;EMP0002&lt;/em&gt;
-  &lt;strong&gt;Martha Raynolds
-&lt;![CDATA[This is a CDATASection with EntityReference number 2 &amp;ent2;]]&gt;
-&lt;![CDATA[This is an adjacent CDATASection with a reference to a tab &amp;tab;]]&gt;&lt;/strong&gt;
-  &lt;code&gt;Secretary&lt;/code&gt;
-  &lt;sup&gt;35,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;&amp;beta; Dallas, &amp;gamma;
- 98554&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:dmstc=&quot;http://www.netzero.com&quot;&gt;
-  &lt;em&gt;EMP0003&lt;/em&gt;
-  &lt;strong&gt;Roger
- Jones&lt;/strong&gt;
-  &lt;code&gt;Department Manager&lt;/code&gt;
-  &lt;sup&gt;100,000&lt;/sup&gt;
-  &lt;var&gt;&amp;ent4;&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;No&quot; id=&quot;_98553&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;PO Box 27 Irving, texas 98553&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:nm=&quot;http://www.altavista.com&quot;&gt;
-  &lt;em&gt;EMP0004&lt;/em&gt;
-  &lt;strong&gt;Jeny Oconnor&lt;/strong&gt;
-  &lt;code&gt;Personnel Director&lt;/code&gt;
-  &lt;sup&gt;95,000&lt;/sup&gt;
-  &lt;var&gt;Female&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Y&amp;alpha;&quot; id=&quot;_98556&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;27 South Road. Dallas, Texas 98556&lt;/acronym&gt;
- &lt;/p&gt;
- &lt;p xmlns:emp2=&quot;http://www.nist.gov&quot;&gt;
-  &lt;em&gt;EMP0005&lt;/em&gt;
-  &lt;strong&gt;Robert Myers&lt;/strong&gt;
-  &lt;code&gt;Computer Specialist&lt;/code&gt;
-  &lt;sup&gt;90,000&lt;/sup&gt;
-  &lt;var&gt;male&lt;/var&gt;
-  &lt;acronym title=&quot;Yes&quot; class=&quot;Yes&quot; xsi:noNamespaceSchemaLocation=&quot;Yes&quot;&gt;1821 Nordic. Road, Irving Texas 98558&lt;/acronym&gt;
- &lt;/p&gt;
-&lt;/body&gt;&lt;/html&gt;
</del></span></pre></div>
<a id="trunkLayoutTestsimportedw3cChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/ChangeLog (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/ChangeLog        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/imported/w3c/ChangeLog        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,5 +1,16 @@
</span><span class="cx"> 2016-08-16  Chris Dumez  &lt;cdumez@apple.com&gt;
</span><span class="cx"> 
</span><ins>+        Align isDefaultNamespace() / lookupPrefix() / lookupNamespaceURI() with the specification
+        https://bugs.webkit.org/show_bug.cgi?id=160911
+
+        Reviewed by Ryosuke Niwa.
+
+        Rebaseline W3C test now that more checks are passing.
+
+        * web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt:
+
+2016-08-16  Chris Dumez  &lt;cdumez@apple.com&gt;
+
</ins><span class="cx">         Re-sync imported/w3c/web-platform-tests/dom/ranges/Range-mutations.html with upstream
</span><span class="cx">         https://bugs.webkit.org/show_bug.cgi?id=160903
</span><span class="cx"> 
</span></span></pre></div>
<a id="trunkLayoutTestsimportedw3cwebplatformtestsdomnodesNodelookupNamespaceURIexpectedtxt"></a>
<div class="modfile"><h4>Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Node-lookupNamespaceURI-expected.txt        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -5,8 +5,8 @@
</span><span class="cx"> PASS DocumentFragment should have null namespace, prefix &quot;&quot; 
</span><span class="cx"> PASS DocumentFragment should have null namespace, prefix &quot;foo&quot; 
</span><span class="cx"> PASS DocumentFragment should have null namespace, prefix &quot;xmlns&quot; 
</span><del>-FAIL DocumentFragment is in default namespace, prefix null assert_equals: expected true but got false
-FAIL DocumentFragment is in default namespace, prefix &quot;&quot; assert_equals: expected true but got false
</del><ins>+PASS DocumentFragment is in default namespace, prefix null 
+PASS DocumentFragment is in default namespace, prefix &quot;&quot; 
</ins><span class="cx"> PASS DocumentFragment is in default namespace, prefix &quot;foo&quot; 
</span><span class="cx"> PASS DocumentFragment is in default namespace, prefix &quot;xmlns&quot; 
</span><span class="cx"> PASS Element should have null namespace, prefix null 
</span><span class="lines">@@ -14,12 +14,12 @@
</span><span class="cx"> PASS Element should not have namespace matching prefix with namespaceURI value 
</span><span class="cx"> PASS Element should not have XMLNS namespace 
</span><span class="cx"> PASS Element has namespace URI matching prefix 
</span><del>-FAIL Empty namespace is not default, prefix null assert_equals: expected true but got false
-FAIL Empty namespace is not default, prefix &quot;&quot; assert_equals: expected true but got false
</del><ins>+PASS Empty namespace is not default, prefix null 
+PASS Empty namespace is not default, prefix &quot;&quot; 
</ins><span class="cx"> PASS fooNamespace is not default 
</span><span class="cx"> PASS xmlns namespace is not default 
</span><span class="cx"> PASS Element should have baz namespace, prefix null 
</span><del>-FAIL Element should have baz namespace, prefix &quot;&quot; assert_equals: expected (string) &quot;bazURI&quot; but got (object) null
</del><ins>+PASS Element should have baz namespace, prefix &quot;&quot; 
</ins><span class="cx"> PASS Element does not has namespace with xlmns prefix 
</span><span class="cx"> PASS Element has bar namespace 
</span><span class="cx"> PASS Empty namespace is not default on fooElem, prefix null 
</span><span class="lines">@@ -27,7 +27,7 @@
</span><span class="cx"> PASS bar namespace is not default 
</span><span class="cx"> PASS baz namespace is default 
</span><span class="cx"> PASS Comment should inherit baz namespace 
</span><del>-FAIL Comment should inherit  baz namespace assert_equals: expected (string) &quot;bazURI&quot; but got (object) null
</del><ins>+PASS Comment should inherit  baz namespace 
</ins><span class="cx"> PASS Comment should inherit namespace URI matching prefix 
</span><span class="cx"> PASS Comment should inherit bar namespace 
</span><span class="cx"> PASS For comment, empty namespace is not default, prefix null 
</span><span class="lines">@@ -37,7 +37,7 @@
</span><span class="cx"> PASS For comment, inherited bar namespace is not default 
</span><span class="cx"> PASS For comment, inherited baz namespace is default 
</span><span class="cx"> PASS Child element should inherit baz namespace 
</span><del>-FAIL Child element should have null namespace assert_equals: expected (string) &quot;childNamespace&quot; but got (object) null
</del><ins>+PASS Child element should have null namespace 
</ins><span class="cx"> PASS Child element should not have XMLNS namespace 
</span><span class="cx"> PASS Child element has namespace URI matching prefix 
</span><span class="cx"> PASS Empty namespace is not default for child, prefix null 
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx"> PASS baz namespace is default for child 
</span><span class="cx"> PASS childNamespace is default for child 
</span><span class="cx"> PASS Document should have xhtml namespace, prefix null 
</span><del>-FAIL Document should have xhtml namespace, prefix &quot;&quot; assert_equals: expected (string) &quot;http://www.w3.org/1999/xhtml&quot; but got (object) null
</del><ins>+PASS Document should have xhtml namespace, prefix &quot;&quot; 
</ins><span class="cx"> PASS Document has no namespace URI matching prefix 
</span><span class="cx"> PASS Document has bar namespace 
</span><span class="cx"> PASS For document, empty namespace is not default, prefix null 
</span></span></pre></div>
<a id="trunkSourceWebCoreChangeLog"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/ChangeLog (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/ChangeLog        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/Source/WebCore/ChangeLog        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -1,3 +1,37 @@
</span><ins>+2016-08-16  Chris Dumez  &lt;cdumez@apple.com&gt;
+
+        Align isDefaultNamespace() / lookupPrefix() / lookupNamespaceURI() with the specification
+        https://bugs.webkit.org/show_bug.cgi?id=160911
+
+        Reviewed by Ryosuke Niwa.
+
+        Align isDefaultNamespace() / lookupPrefix() / lookupNamespaceURI() with the specification:
+        - https://dom.spec.whatwg.org/#dom-node-isdefaultnamespace
+        - https://dom.spec.whatwg.org/#dom-node-lookupprefix
+        - https://dom.spec.whatwg.org/#dom-node-lookupnamespaceuri
+
+        Our implementation now matches closely the text of the DOM specification
+        and we pass more W3C tests as it fixes the following bug:
+        - isDefaultNamespace(null) / isDefaultNamespace('') was not returning true for in cases
+          where the node's default namespace was null. Our implementation was returning false
+          instead of comparing the node's default namespace (in this case null) with the input
+          namespace (in this case null).
+
+        No new tests, rebaselined existing test.
+
+        * dom/Node.cpp:
+        (WebCore::locateDefaultNamespace):
+        (WebCore::Node::isDefaultNamespace):
+        (WebCore::Node::lookupNamespaceURI):
+        (WebCore::locateNamespacePrefix):
+        (WebCore::Node::lookupPrefix):
+        (WebCore::appendTextContent): Deleted.
+        (WebCore::Node::textContent): Deleted.
+        (WebCore::Node::setTextContent): Deleted.
+        * dom/Node.h:
+        * xml/NativeXPathNSResolver.cpp:
+        (WebCore::NativeXPathNSResolver::lookupNamespaceURI):
+
</ins><span class="cx"> 2016-08-15  Ada Chan  &lt;adachan@apple.com&gt;
</span><span class="cx"> 
</span><span class="cx">         Placeholder does not show the first time going into picture-in-picture on video without controls
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodecpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.cpp (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.cpp        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/Source/WebCore/dom/Node.cpp        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -70,6 +70,7 @@
</span><span class="cx"> #include &quot;TouchEvent.h&quot;
</span><span class="cx"> #include &quot;TreeScopeAdopter.h&quot;
</span><span class="cx"> #include &quot;WheelEvent.h&quot;
</span><ins>+#include &quot;XMLNSNames.h&quot;
</ins><span class="cx"> #include &quot;XMLNames.h&quot;
</span><span class="cx"> #include &lt;wtf/RefCountedLeakCounter.h&gt;
</span><span class="cx"> #include &lt;wtf/SHA1.h&gt;
</span><span class="lines">@@ -1313,159 +1314,103 @@
</span><span class="cx">     return true;
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-bool Node::isDefaultNamespace(const AtomicString&amp; namespaceURIMaybeEmpty) const
</del><ins>+// https://dom.spec.whatwg.org/#locate-a-namespace
+static const AtomicString&amp; locateDefaultNamespace(const Node&amp; node, const AtomicString&amp; prefix)
</ins><span class="cx"> {
</span><del>-    const AtomicString&amp; namespaceURI = namespaceURIMaybeEmpty.isEmpty() ? nullAtom : namespaceURIMaybeEmpty;
</del><ins>+    switch (node.nodeType()) {
+    case Node::ELEMENT_NODE: {
+        auto&amp; element = downcast&lt;Element&gt;(node);
+        auto&amp; namespaceURI = element.namespaceURI();
+        if (!namespaceURI.isNull() &amp;&amp; element.prefix() == prefix)
+            return namespaceURI;
</ins><span class="cx"> 
</span><del>-    switch (nodeType()) {
-        case ELEMENT_NODE: {
-            const Element&amp; element = downcast&lt;Element&gt;(*this);
-            
-            if (element.prefix().isNull())
-                return element.namespaceURI() == namespaceURI;
</del><ins>+        if (element.hasAttributes()) {
+            for (auto&amp; attribute : element.attributesIterator()) {
+                if (attribute.namespaceURI() != XMLNSNames::xmlnsNamespaceURI)
+                    continue;
</ins><span class="cx"> 
</span><del>-            if (element.hasAttributes()) {
-                for (const Attribute&amp; attribute : element.attributesIterator()) {
-                    if (attribute.localName() == xmlnsAtom)
-                        return attribute.value() == namespaceURI;
</del><ins>+                if ((prefix.isNull() &amp;&amp; attribute.prefix().isNull() &amp;&amp; attribute.localName() == xmlnsAtom) || (attribute.prefix() == xmlnsAtom &amp;&amp; attribute.localName() == prefix)) {
+                    auto&amp; result = attribute.value();
+                    return result.isEmpty() ? nullAtom : result;
</ins><span class="cx">                 }
</span><span class="cx">             }
</span><del>-
-            if (auto* parent = parentElement())
-                return parent-&gt;isDefaultNamespace(namespaceURI);
-
-            return false;
</del><span class="cx">         }
</span><del>-        case DOCUMENT_NODE:
-            if (Element* documentElement = downcast&lt;Document&gt;(*this).documentElement())
-                return documentElement-&gt;isDefaultNamespace(namespaceURI);
-            return false;
-        case DOCUMENT_TYPE_NODE:
-        case DOCUMENT_FRAGMENT_NODE:
-            return false;
-        case ATTRIBUTE_NODE: {
-            const Attr* attr = static_cast&lt;const Attr*&gt;(this);
-            if (attr-&gt;ownerElement())
-                return attr-&gt;ownerElement()-&gt;isDefaultNamespace(namespaceURI);
-            return false;
-        }
-        default:
-            if (auto* parent = parentElement())
-                return parent-&gt;isDefaultNamespace(namespaceURI);
-            return false;
</del><ins>+        auto* parent = node.parentElement();
+        return parent ? locateDefaultNamespace(*parent, prefix) : nullAtom;
</ins><span class="cx">     }
</span><ins>+    case Node::DOCUMENT_NODE:
+        if (auto* documentElement = downcast&lt;Document&gt;(node).documentElement())
+            return locateDefaultNamespace(*documentElement, prefix);
+        return nullAtom;
+    case Node::DOCUMENT_TYPE_NODE:
+    case Node::DOCUMENT_FRAGMENT_NODE:
+        return nullAtom;
+    case Node::ATTRIBUTE_NODE:
+        if (auto* ownerElement = downcast&lt;Attr&gt;(node).ownerElement())
+            return locateDefaultNamespace(*ownerElement, prefix);
+        return nullAtom;
+    default:
+        if (auto* parent = node.parentElement())
+            return locateDefaultNamespace(*parent, prefix);
+        return nullAtom;
+    }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-String Node::lookupPrefix(const AtomicString &amp;namespaceURI) const
</del><ins>+// https://dom.spec.whatwg.org/#dom-node-isdefaultnamespace
+bool Node::isDefaultNamespace(const AtomicString&amp; potentiallyEmptyNamespace) const
</ins><span class="cx"> {
</span><del>-    // Implemented according to
-    // http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/namespaces-algorithms.html#lookupNamespacePrefixAlgo
-    
-    if (namespaceURI.isEmpty())
-        return String();
-    
-    switch (nodeType()) {
-        case ELEMENT_NODE:
-            return lookupNamespacePrefix(namespaceURI, static_cast&lt;const Element *&gt;(this));
-        case DOCUMENT_NODE:
-            if (Element* documentElement = downcast&lt;Document&gt;(*this).documentElement())
-                return documentElement-&gt;lookupPrefix(namespaceURI);
-            return String();
-        case DOCUMENT_FRAGMENT_NODE:
-        case DOCUMENT_TYPE_NODE:
-            return String();
-        case ATTRIBUTE_NODE: {
-            const Attr *attr = static_cast&lt;const Attr *&gt;(this);
-            if (attr-&gt;ownerElement())
-                return attr-&gt;ownerElement()-&gt;lookupPrefix(namespaceURI);
-            return String();
-        }
-        default:
-            if (auto* parent = parentElement())
-                return parent-&gt;lookupPrefix(namespaceURI);
-            return String();
-    }
</del><ins>+    const AtomicString&amp; namespaceURI = potentiallyEmptyNamespace.isEmpty() ? nullAtom : potentiallyEmptyNamespace;
+    return locateDefaultNamespace(*this, nullAtom) == namespaceURI;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-String Node::lookupNamespaceURI(const String &amp;prefix) const
</del><ins>+// https://dom.spec.whatwg.org/#dom-node-lookupnamespaceuri
+const AtomicString&amp; Node::lookupNamespaceURI(const AtomicString&amp; potentiallyEmptyPrefix) const
</ins><span class="cx"> {
</span><del>-    // Implemented according to
-    // http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/namespaces-algorithms.html#lookupNamespaceURIAlgo
-    
-    if (!prefix.isNull() &amp;&amp; prefix.isEmpty())
-        return String();
-    
-    switch (nodeType()) {
-        case ELEMENT_NODE: {
-            const Element *elem = static_cast&lt;const Element *&gt;(this);
-            
-            if (!elem-&gt;namespaceURI().isNull() &amp;&amp; elem-&gt;prefix() == prefix)
-                return elem-&gt;namespaceURI();
-            
-            if (elem-&gt;hasAttributes()) {
-                for (const Attribute&amp; attribute : elem-&gt;attributesIterator()) {
-                    
-                    if (attribute.prefix() == xmlnsAtom &amp;&amp; attribute.localName() == prefix) {
-                        if (!attribute.value().isEmpty())
-                            return attribute.value();
-                        
-                        return String();
-                    }
-                    if (attribute.localName() == xmlnsAtom &amp;&amp; prefix.isNull()) {
-                        if (!attribute.value().isEmpty())
-                            return attribute.value();
-                        
-                        return String();
-                    }
-                }
-            }
-            if (auto* parent = parentElement())
-                return parent-&gt;lookupNamespaceURI(prefix);
-            return String();
</del><ins>+    const AtomicString&amp; prefix = potentiallyEmptyPrefix.isEmpty() ? nullAtom : potentiallyEmptyPrefix;
+    return locateDefaultNamespace(*this, prefix);
+}
+
+// https://dom.spec.whatwg.org/#locate-a-namespace-prefix
+static const AtomicString&amp; locateNamespacePrefix(const Element&amp; element, const AtomicString&amp; namespaceURI)
+{
+    if (element.namespaceURI() == namespaceURI)
+        return element.prefix();
+
+    if (element.hasAttributes()) {
+        for (auto&amp; attribute : element.attributesIterator()) {
+            if (attribute.prefix() == xmlnsAtom &amp;&amp; attribute.value() == namespaceURI)
+                return attribute.localName();
</ins><span class="cx">         }
</span><del>-        case DOCUMENT_NODE:
-            if (Element* documentElement = downcast&lt;Document&gt;(*this).documentElement())
-                return documentElement-&gt;lookupNamespaceURI(prefix);
-            return String();
-        case DOCUMENT_TYPE_NODE:
-        case DOCUMENT_FRAGMENT_NODE:
-            return String();
-        case ATTRIBUTE_NODE: {
-            const Attr *attr = static_cast&lt;const Attr *&gt;(this);
-            
-            if (attr-&gt;ownerElement())
-                return attr-&gt;ownerElement()-&gt;lookupNamespaceURI(prefix);
-            else
-                return String();
-        }
-        default:
-            if (auto* parent = parentElement())
-                return parent-&gt;lookupNamespaceURI(prefix);
-            return String();
</del><span class="cx">     }
</span><ins>+    auto* parent = element.parentElement();
+    return parent ? locateNamespacePrefix(*parent, namespaceURI) : nullAtom;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><del>-String Node::lookupNamespacePrefix(const AtomicString &amp;_namespaceURI, const Element *originalElement) const
</del><ins>+// https://dom.spec.whatwg.org/#dom-node-lookupprefix
+const AtomicString&amp; Node::lookupPrefix(const AtomicString&amp; namespaceURI) const
</ins><span class="cx"> {
</span><del>-    if (_namespaceURI.isNull())
-        return String();
-            
-    if (originalElement-&gt;lookupNamespaceURI(prefix()) == _namespaceURI)
-        return prefix();
</del><ins>+    if (namespaceURI.isEmpty())
+        return nullAtom;
</ins><span class="cx">     
</span><del>-    ASSERT(is&lt;Element&gt;(*this));
-    const Element&amp; thisElement = downcast&lt;Element&gt;(*this);
-    if (thisElement.hasAttributes()) {
-        for (const Attribute&amp; attribute : thisElement.attributesIterator()) {
-            if (attribute.prefix() == xmlnsAtom &amp;&amp; attribute.value() == _namespaceURI
-                &amp;&amp; originalElement-&gt;lookupNamespaceURI(attribute.localName()) == _namespaceURI)
-                return attribute.localName();
-        }
</del><ins>+    switch (nodeType()) {
+    case ELEMENT_NODE:
+        return locateNamespacePrefix(downcast&lt;Element&gt;(*this), namespaceURI);
+    case DOCUMENT_NODE:
+        if (auto* documentElement = downcast&lt;Document&gt;(*this).documentElement())
+            return locateNamespacePrefix(*documentElement, namespaceURI);
+        return nullAtom;
+    case DOCUMENT_FRAGMENT_NODE:
+    case DOCUMENT_TYPE_NODE:
+        return nullAtom;
+    case ATTRIBUTE_NODE:
+        if (auto* ownerElement = downcast&lt;Attr&gt;(*this).ownerElement())
+            return locateNamespacePrefix(*ownerElement, namespaceURI);
+        return nullAtom;
+    default:
+        if (auto* parent = parentElement())
+            return locateNamespacePrefix(*parent, namespaceURI);
+        return nullAtom;
</ins><span class="cx">     }
</span><del>-    
-    if (auto* parent = parentElement())
-        return parent-&gt;lookupNamespacePrefix(_namespaceURI, originalElement);
-    return String();
</del><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> static void appendTextContent(const Node* node, bool convertBRsToNewlines, bool&amp; isNullString, StringBuilder&amp; content)
</span></span></pre></div>
<a id="trunkSourceWebCoredomNodeh"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/dom/Node.h (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/dom/Node.h        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/Source/WebCore/dom/Node.h        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -192,9 +192,8 @@
</span><span class="cx">     bool isSameNode(Node* other) const { return this == other; }
</span><span class="cx">     bool isEqualNode(Node*) const;
</span><span class="cx">     bool isDefaultNamespace(const AtomicString&amp; namespaceURI) const;
</span><del>-    String lookupPrefix(const AtomicString&amp; namespaceURI) const;
-    String lookupNamespaceURI(const String&amp; prefix) const;
-    String lookupNamespacePrefix(const AtomicString&amp; namespaceURI, const Element* originalElement) const;
</del><ins>+    const AtomicString&amp; lookupPrefix(const AtomicString&amp; namespaceURI) const;
+    const AtomicString&amp; lookupNamespaceURI(const AtomicString&amp; prefix) const;
</ins><span class="cx">     
</span><span class="cx">     WEBCORE_EXPORT String textContent(bool convertBRsToNewlines = false) const;
</span><span class="cx">     WEBCORE_EXPORT void setTextContent(const String&amp;, ExceptionCode&amp;);
</span></span></pre></div>
<a id="trunkSourceWebCorexmlNativeXPathNSResolvercpp"></a>
<div class="modfile"><h4>Modified: trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp (204535 => 204536)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp        2016-08-16 22:51:27 UTC (rev 204535)
+++ trunk/Source/WebCore/xml/NativeXPathNSResolver.cpp        2016-08-16 22:56:02 UTC (rev 204536)
</span><span class="lines">@@ -48,7 +48,7 @@
</span><span class="cx">     if (prefix == &quot;xml&quot;)
</span><span class="cx">         return XMLNames::xmlNamespaceURI;
</span><span class="cx">     
</span><del>-    return m_node ? m_node-&gt;lookupNamespaceURI(prefix) : String();
</del><ins>+    return m_node ? m_node-&gt;lookupNamespaceURI(prefix).string() : String();
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> } // namespace WebCore
</span></span></pre>
</div>
</div>

</body>
</html>