[html5] r7796 - [e] (0) Update integration with URL spec and Encoding spec. Fixing https://www.w [...]

whatwg at whatwg.org whatwg at whatwg.org
Tue Apr 9 12:24:03 PDT 2013


Author: ianh
Date: 2013-04-09 12:24:02 -0700 (Tue, 09 Apr 2013)
New Revision: 7796

Modified:
   complete.html
   index
   source
Log:
[e] (0) Update integration with URL spec and Encoding spec.
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=20923
Affected topics: HTML

Modified: complete.html
===================================================================
--- complete.html	2013-04-09 18:18:32 UTC (rev 7795)
+++ complete.html	2013-04-09 19:24:02 UTC (rev 7796)
@@ -3436,6 +3436,8 @@
      <li><dfn id=default-encode-set>Default encode set</dfn>
      <li><dfn id=percent-encode>Percent encode</dfn>
      <li><dfn id=utf-8-percent-encode>UTF-8 percent encode</dfn>
+     <li><dfn id=percent-decode>Percent decode</dfn>
+     <li><dfn id=decoder-error>Decoder error</dfn>
      <li><dfn id=urlutils><code>URLUtils</code></dfn> interface
      <li><dfn id=urlutilsreadonly><code>URLUtilsReadOnly</code></dfn> interface
      <li><dfn id=dom-url-href title=dom-url-href><code>href</code> attribute</dfn>
@@ -67867,16 +67869,19 @@
    <li><p>If <var title="">fragid</var> is the empty string, then <a href=#the-indicated-part-of-the-document>the indicated part of the
    document</a> is the top of the document; stop the algorithm here.</li>
 
-   <li><p>Let <var title="">decoded fragid</var> be the result of expanding any sequences of
-   percent-encoded octets in <var title="">fragid</var> that are valid UTF-8 sequences into Unicode
-   characters as defined by UTF-8. If any percent-encoded octets in that string are not valid UTF-8
-   sequences (e.g. they expand to surrogate code points), then skip this step and the next one.</p>
+   <li><p>Let <var title="">fragid bytes</var> be the result of <a href=#percent-decode title="percent
+   decode">percent-decoding</a> <var title="">fragid</var>.</li>
 
-   <li><p>If this step was not skipped and there is an element in the DOM that has an <a href=#concept-id title=concept-id>ID</a> exactly equal to <var title="">decoded fragid</var>, then the first
-   such element in tree order is <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>; stop the algorithm
-   here.</li>
+   <li><p>Let <var title="">decoded fragid</var> be the result of applying the <a href=#utf-8-decoder>UTF-8
+   decoder</a> algorithm to <var title="">fragid bytes</var>. If the <a href=#utf-8-decoder>UTF-8 decoder</a>
+   emits a <a href=#decoder-error>decoder error</a>, abort the decoder and instead jump to the step labeled <i>no
+   decoded fragid</i>.</li>
 
-   <li><p>If there is an <code><a href=#the-a-element>a</a></code> element in the DOM that has a <code title=attr-a-name><a href=#attr-a-name>name</a></code> attribute whose value is exactly equal to <var title="">fragid</var> (<em>not</em> <var title="">decoded fragid</var>), then the first such
+   <li><p>If there is an element in the DOM that has an <a href=#concept-id title=concept-id>ID</a> exactly
+   equal to <var title="">decoded fragid</var>, then the first such element in tree order is
+   <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>; stop the algorithm here.</li>
+
+   <li><p><i>No decoded fragid</i>: If there is an <code><a href=#the-a-element>a</a></code> element in the DOM that has a <code title=attr-a-name><a href=#attr-a-name>name</a></code> attribute whose value is exactly equal to <var title="">fragid</var> (<em>not</em> <var title="">decoded fragid</var>), then the first such
    element in tree order is <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>; stop the algorithm
    here.</li>
 

Modified: index
===================================================================
--- index	2013-04-09 18:18:32 UTC (rev 7795)
+++ index	2013-04-09 19:24:02 UTC (rev 7796)
@@ -3436,6 +3436,8 @@
      <li><dfn id=default-encode-set>Default encode set</dfn>
      <li><dfn id=percent-encode>Percent encode</dfn>
      <li><dfn id=utf-8-percent-encode>UTF-8 percent encode</dfn>
+     <li><dfn id=percent-decode>Percent decode</dfn>
+     <li><dfn id=decoder-error>Decoder error</dfn>
      <li><dfn id=urlutils><code>URLUtils</code></dfn> interface
      <li><dfn id=urlutilsreadonly><code>URLUtilsReadOnly</code></dfn> interface
      <li><dfn id=dom-url-href title=dom-url-href><code>href</code> attribute</dfn>
@@ -67867,16 +67869,19 @@
    <li><p>If <var title="">fragid</var> is the empty string, then <a href=#the-indicated-part-of-the-document>the indicated part of the
    document</a> is the top of the document; stop the algorithm here.</li>
 
-   <li><p>Let <var title="">decoded fragid</var> be the result of expanding any sequences of
-   percent-encoded octets in <var title="">fragid</var> that are valid UTF-8 sequences into Unicode
-   characters as defined by UTF-8. If any percent-encoded octets in that string are not valid UTF-8
-   sequences (e.g. they expand to surrogate code points), then skip this step and the next one.</p>
+   <li><p>Let <var title="">fragid bytes</var> be the result of <a href=#percent-decode title="percent
+   decode">percent-decoding</a> <var title="">fragid</var>.</li>
 
-   <li><p>If this step was not skipped and there is an element in the DOM that has an <a href=#concept-id title=concept-id>ID</a> exactly equal to <var title="">decoded fragid</var>, then the first
-   such element in tree order is <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>; stop the algorithm
-   here.</li>
+   <li><p>Let <var title="">decoded fragid</var> be the result of applying the <a href=#utf-8-decoder>UTF-8
+   decoder</a> algorithm to <var title="">fragid bytes</var>. If the <a href=#utf-8-decoder>UTF-8 decoder</a>
+   emits a <a href=#decoder-error>decoder error</a>, abort the decoder and instead jump to the step labeled <i>no
+   decoded fragid</i>.</li>
 
-   <li><p>If there is an <code><a href=#the-a-element>a</a></code> element in the DOM that has a <code title=attr-a-name><a href=#attr-a-name>name</a></code> attribute whose value is exactly equal to <var title="">fragid</var> (<em>not</em> <var title="">decoded fragid</var>), then the first such
+   <li><p>If there is an element in the DOM that has an <a href=#concept-id title=concept-id>ID</a> exactly
+   equal to <var title="">decoded fragid</var>, then the first such element in tree order is
+   <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>; stop the algorithm here.</li>
+
+   <li><p><i>No decoded fragid</i>: If there is an <code><a href=#the-a-element>a</a></code> element in the DOM that has a <code title=attr-a-name><a href=#attr-a-name>name</a></code> attribute whose value is exactly equal to <var title="">fragid</var> (<em>not</em> <var title="">decoded fragid</var>), then the first such
    element in tree order is <a href=#the-indicated-part-of-the-document>the indicated part of the document</a>; stop the algorithm
    here.</li>
 

Modified: source
===================================================================
--- source	2013-04-09 18:18:32 UTC (rev 7795)
+++ source	2013-04-09 19:24:02 UTC (rev 7796)
@@ -2241,6 +2241,8 @@
      <li><dfn>Default encode set</dfn>
      <li><dfn>Percent encode</dfn>
      <li><dfn>UTF-8 percent encode</dfn>
+     <li><dfn>Percent decode</dfn>
+     <li><dfn>Decoder error</dfn>
      <li><dfn><code>URLUtils</code></dfn> interface
      <li><dfn><code>URLUtilsReadOnly</code></dfn> interface
      <li><dfn title="dom-url-href"><code>href</code> attribute</dfn>
@@ -80300,17 +80302,19 @@
    <li><p>If <var title="">fragid</var> is the empty string, then <span>the indicated part of the
    document</span> is the top of the document; stop the algorithm here.</p></li>
 
-   <li><p>Let <var title="">decoded fragid</var> be the result of expanding any sequences of
-   percent-encoded octets in <var title="">fragid</var> that are valid UTF-8 sequences into Unicode
-   characters as defined by UTF-8. If any percent-encoded octets in that string are not valid UTF-8
-   sequences (e.g. they expand to surrogate code points), then skip this step and the next one.</p>
+   <li><p>Let <var title="">fragid bytes</var> be the result of <span title="percent
+   decode">percent-decoding</span> <var title="">fragid</var>.</p></li>
 
-   <li><p>If this step was not skipped and there is an element in the DOM that has an <span
-   title="concept-id">ID</span> exactly equal to <var title="">decoded fragid</var>, then the first
-   such element in tree order is <span>the indicated part of the document</span>; stop the algorithm
-   here.</p></li>
+   <li><p>Let <var title="">decoded fragid</var> be the result of applying the <span>UTF-8
+   decoder</span> algorithm to <var title="">fragid bytes</var>. If the <span>UTF-8 decoder</span>
+   emits a <span>decoder error</span>, abort the decoder and instead jump to the step labeled <i>no
+   decoded fragid</i>.</p></li>
 
-   <li><p>If there is an <code>a</code> element in the DOM that has a <code
+   <li><p>If there is an element in the DOM that has an <span title="concept-id">ID</span> exactly
+   equal to <var title="">decoded fragid</var>, then the first such element in tree order is
+   <span>the indicated part of the document</span>; stop the algorithm here.</p></li>
+
+   <li><p><i>No decoded fragid</i>: If there is an <code>a</code> element in the DOM that has a <code
    title="attr-a-name">name</code> attribute whose value is exactly equal to <var
    title="">fragid</var> (<em>not</em> <var title="">decoded fragid</var>), then the first such
    element in tree order is <span>the indicated part of the document</span>; stop the algorithm




More information about the Commit-Watchers mailing list