Clarify the "locate a namespace prefix" algorithm.
authorMs2ger <ms2ger@gmail.com>
Tue, 28 Jun 2011 23:31:06 +0200
changeset 5815bd608fcd14e
parent 580 c63537f5eb56
child 582 6911c875c3d2
Clarify the "locate a namespace prefix" algorithm.
Overview.html
Overview.src.html
     1.1 --- a/Overview.html	Tue Jun 28 19:03:16 2011 +0200
     1.2 +++ b/Overview.html	Tue Jun 28 23:31:06 2011 +0200
     1.3 @@ -1906,13 +1906,15 @@
     1.4   <a href="#concept-attribute" title="concept-attribute">attribute</a> whose
     1.5   <a href="#concept-attribute-namespace-prefix" title="concept-attribute-namespace-prefix">namespace prefix</a> is
     1.6   "<code title="">xmlns</code>" and <a href="#concept-attribute-value" title="concept-attribute-value">value</a>
     1.7 - is <var title="">namespace</var> then return its
     1.8 + is <var title="">namespace</var> then return that
     1.9 + <a href="#concept-attribute" title="concept-attribute">attribute</a>'s
    1.10   <a href="#concept-attribute-local-name" title="concept-attribute-local-name">local name</a> and terminate these
    1.11   steps.
    1.12  
    1.13 - <li><p>Return the result of running <a href="#locate-a-namespace-prefix">locate a namespace prefix</a>
    1.14 - on its <a href="#parent-element">parent element</a> using <var title="">namespace</var>, if
    1.15 - that is not null, or null otherwise.
    1.16 + <li><p>If <var title="">element</var>'s <a href="#parent-element">parent element</a> is not null,
    1.17 + return the result of running <a href="#locate-a-namespace-prefix">locate a namespace prefix</a> on that
    1.18 + <a href="#concept-element" title="concept-element">element</a> using <var title="">namespace</var>.
    1.19 + Otherwise, return null.
    1.20  </ol>
    1.21  
    1.22  <p>To <dfn id="locate-a-namespace">locate a namespace</dfn> for a <var title="">node</var> using
     2.1 --- a/Overview.src.html	Tue Jun 28 19:03:16 2011 +0200
     2.2 +++ b/Overview.src.html	Tue Jun 28 23:31:06 2011 +0200
     2.3 @@ -1857,13 +1857,15 @@
     2.4   <span title=concept-attribute>attribute</span> whose
     2.5   <span title=concept-attribute-namespace-prefix>namespace prefix</span> is
     2.6   "<code title>xmlns</code>" and <span title=concept-attribute-value>value</span>
     2.7 - is <var title>namespace</var> then return its
     2.8 + is <var title>namespace</var> then return that
     2.9 + <span title=concept-attribute>attribute</span>'s
    2.10   <span title=concept-attribute-local-name>local name</span> and terminate these
    2.11   steps.
    2.12  
    2.13 - <li><p>Return the result of running <span>locate a namespace prefix</span>
    2.14 - on its <span>parent element</span> using <var title>namespace</var>, if
    2.15 - that is not null, or null otherwise.
    2.16 + <li><p>If <var title>element</var>'s <span>parent element</span> is not null,
    2.17 + return the result of running <span>locate a namespace prefix</span> on that
    2.18 + <span title=concept-element>element</span> using <var title>namespace</var>.
    2.19 + Otherwise, return null.
    2.20  </ol>
    2.21  
    2.22  <p>To <dfn>locate a namespace</dfn> for a <var title>node</var> using