improve locate a namespace by fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16712 and https://www.w3.org/Bugs/Public/show_bug.cgi?id=16713
authorAnne van Kesteren <annevk@opera.com>
Tue, 15 May 2012 14:12:31 +0200
changeset 10369e09c3bcea6e
parent 1035 0544fd623f70
child 1037 24e237f168a0
improve locate a namespace by fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=16712 and https://www.w3.org/Bugs/Public/show_bug.cgi?id=16713
Overview.html
Overview.src.html
dom-core.html
     1.1 --- a/Overview.html	Tue May 15 12:47:07 2012 +0200
     1.2 +++ b/Overview.html	Tue May 15 14:12:31 2012 +0200
     1.3 @@ -3440,13 +3440,19 @@
     1.4     <li>
     1.5      <p>If it <a href="#concept-element-attribute-has" title="concept-element-attribute-has">has</a> an
     1.6      <a href="#concept-attribute" title="concept-attribute">attribute</a> whose
     1.7 +    <a href="#concept-attribute-namespace" title="concept-attribute-namespace">namespace</a> is the
     1.8 +    <a href="#xmlns-namespace">XMLNS namespace</a>,
     1.9      <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a>
    1.10      is "<code title="">xmlns</code>" and
    1.11      <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a> is
    1.12 -    <var title="">prefix</var>, or whose
    1.13 -    <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a> is
    1.14 -    null and <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a> is
    1.15 -    "<code title="">xmlns</code>":
    1.16 +    <var title="">prefix</var>, or if <var title="">prefix</var> is null and it
    1.17 +    <a href="#concept-element-attribute-has" title="concept-element-attribute-has">has</a> an
    1.18 +    <a href="#concept-attribute" title="concept-attribute">attribute</a> whose
    1.19 +    <a href="#concept-attribute-namespace" title="concept-attribute-namespace">namespace</a> is the
    1.20 +    <a href="#xmlns-namespace">XMLNS namespace</a>,
    1.21 +    <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a>
    1.22 +    is null and <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a>
    1.23 +    is "<code title="">xmlns</code>":
    1.24  
    1.25      <ol>
    1.26       <li><p>Let <var title="">value</var> be its
     2.1 --- a/Overview.src.html	Tue May 15 12:47:07 2012 +0200
     2.2 +++ b/Overview.src.html	Tue May 15 14:12:31 2012 +0200
     2.3 @@ -3438,13 +3438,19 @@
     2.4     <li>
     2.5      <p>If it <span title=concept-element-attribute-has>has</span> an
     2.6      <span title=concept-attribute>attribute</span> whose
     2.7 +    <span title=concept-attribute-namespace>namespace</span> is the
     2.8 +    <span>XMLNS namespace</span>,
     2.9      <span title=concept-attribute-namespace-prefix>namespace prefix</span>
    2.10      is "<code title>xmlns</code>" and
    2.11      <span title=concept-attribute-local-name>local name</span> is
    2.12 -    <var title>prefix</var>, or whose
    2.13 -    <span title=concept-attribute-namespace-prefix>namespace prefix</span> is
    2.14 -    null and <span title=concept-attribute-local-name>local name</span> is
    2.15 -    "<code title>xmlns</code>":
    2.16 +    <var title>prefix</var>, or if <var title>prefix</var> is null and it
    2.17 +    <span title=concept-element-attribute-has>has</span> an
    2.18 +    <span title=concept-attribute>attribute</span> whose
    2.19 +    <span title=concept-attribute-namespace>namespace</span> is the
    2.20 +    <span>XMLNS namespace</span>,
    2.21 +    <span title=concept-attribute-namespace-prefix>namespace prefix</span>
    2.22 +    is null and <span title=concept-attribute-local-name>local name</span>
    2.23 +    is "<code title>xmlns</code>":
    2.24  
    2.25      <ol>
    2.26       <li><p>Let <var title>value</var> be its
     3.1 --- a/dom-core.html	Tue May 15 12:47:07 2012 +0200
     3.2 +++ b/dom-core.html	Tue May 15 14:12:31 2012 +0200
     3.3 @@ -3396,13 +3396,19 @@
     3.4     <li>
     3.5      <p>If it <a href="#concept-element-attribute-has" title="concept-element-attribute-has">has</a> an
     3.6      <a href="#concept-attribute" title="concept-attribute">attribute</a> whose
     3.7 +    <a href="#concept-attribute-namespace" title="concept-attribute-namespace">namespace</a> is the
     3.8 +    <a href="#xmlns-namespace">XMLNS namespace</a>,
     3.9      <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a>
    3.10      is "<code title="">xmlns</code>" and
    3.11      <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a> is
    3.12 -    <var title="">prefix</var>, or whose
    3.13 -    <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a> is
    3.14 -    null and <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a> is
    3.15 -    "<code title="">xmlns</code>":
    3.16 +    <var title="">prefix</var>, or if <var title="">prefix</var> is null and it
    3.17 +    <a href="#concept-element-attribute-has" title="concept-element-attribute-has">has</a> an
    3.18 +    <a href="#concept-attribute" title="concept-attribute">attribute</a> whose
    3.19 +    <a href="#concept-attribute-namespace" title="concept-attribute-namespace">namespace</a> is the
    3.20 +    <a href="#xmlns-namespace">XMLNS namespace</a>,
    3.21 +    <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a>
    3.22 +    is null and <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a>
    3.23 +    is "<code title="">xmlns</code>":
    3.24  
    3.25      <ol>
    3.26       <li><p>Let <var title="">value</var> be its