Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
annevk committed Jul 28, 2014
1 parent f3bd390 commit 1c22aa1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 8 deletions.
15 changes: 11 additions & 4 deletions url.html
Expand Up @@ -543,7 +543,7 @@ <h3 id="host-parsing"><span class="secno">4.3 </span>Parsing</h3>
these substeps:

<ol>
<li><p>Let <var title="">value</var> be 0.
<li><p>Let <var title="">value</var> be null.

<li><p>If <a href="#c">c</a> is not an <a href="#ascii-digits" title="ASCII digits">ASCII digit</a>,
<a href="#parse-error">parse error</a>, return failure. <!-- prevent the empty string -->
Expand All @@ -553,12 +553,18 @@ <h3 id="host-parsing"><span class="secno">4.3 </span>Parsing</h3>
<a href="#ascii-digits" title="ASCII digits">ASCII digit</a>, run these subsubsteps:

<ol>
<li><p>Set <var title="">value</var> to
<var title="">value</var> × 10 + <a href="#c">c</a> interpreted as decimal number.
<li><p>Let <var title="">number</var> be <a href="#c">c</a> interpreted as decimal number.

<li>
<p>If <var title="">value</var> is null, set <var title="">value</var> to <var title="">number</var>.

<p>Otherwise, if <var title="">value</var> is 0, <a href="#parse-error">parse error</a>, return failure.

<p>Otherwise, set <var title="">value</var> to <var title="">value</var> × 10 + <var title="">number</var>.

<li><p>Increase <var title="">pointer</var> by one.

<li><p>If <var title="">value</var> is 0 or greater than 255, <a href="#parse-error">parse error</a>,
<li><p>If <var title="">value</var> is greater than 255, <a href="#parse-error">parse error</a>,
return failure.
</ol>

Expand Down Expand Up @@ -2812,6 +2818,7 @@ <h2 class="no-num" id="acknowledgments">Acknowledgments</h2>

<p>Thanks to
Adam Barth,
Albert Wiersch,
Alexandre Morgaut,
Behnam Esfahbod,
Bobby Holley,
Expand Down
15 changes: 11 additions & 4 deletions url.src.html
Expand Up @@ -511,7 +511,7 @@ <h3 id=host-parsing>Parsing</h3>
these substeps:

<ol>
<li><p>Let <var title>value</var> be 0.
<li><p>Let <var title>value</var> be null.

<li><p>If <span>c</span> is not an <span title="ASCII digits">ASCII digit</span>,
<span>parse error</span>, return failure. <!-- prevent the empty string -->
Expand All @@ -521,12 +521,18 @@ <h3 id=host-parsing>Parsing</h3>
<span title="ASCII digits">ASCII digit</span>, run these subsubsteps:

<ol>
<li><p>Set <var title>value</var> to
<var title>value</var> &times; 10 + <span>c</span> interpreted as decimal number.
<li><p>Let <var title>number</var> be <span>c</span> interpreted as decimal number.

<li>
<p>If <var title>value</var> is null, set <var title>value</var> to <var title>number</var>.

<p>Otherwise, if <var title>value</var> is 0, <span>parse error</span>, return failure.

<p>Otherwise, set <var title>value</var> to <var title>value</var> &times; 10 + <var title>number</var>.

<li><p>Increase <var title>pointer</var> by one.

<li><p>If <var title>value</var> is 0 or greater than 255, <span>parse error</span>,
<li><p>If <var title>value</var> is greater than 255, <span>parse error</span>,
return failure.
</ol>

Expand Down Expand Up @@ -2747,6 +2753,7 @@ <h2 class=no-num>Acknowledgments</h2>

<p>Thanks to
Adam Barth,
Albert Wiersch,
Alexandre Morgaut,
Behnam Esfahbod,
Bobby Holley,
Expand Down

0 comments on commit 1c22aa1

Please sign in to comment.