Skip to content

Commit

Permalink
[e] (0) Improve grammar.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=21728
Affected topics: DOM APIs, Microdata

git-svn-id: http://svn.whatwg.org/webapps@7898 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 4, 2013
1 parent 5ce4e4a commit 44b28c8
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 15 deletions.
12 changes: 7 additions & 5 deletions complete.html
Original file line number Diff line number Diff line change
Expand Up @@ -54332,9 +54332,11 @@ <h4 id=textFieldSelection><span class=secno>4.10.20 </span>APIs for the text fie
<li><p>If <var title="">start</var> is greater than <var title="">end</var>, then throw an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.</li>

<li><p>If either <var title="">start</var> or <var title="">end</var> are greater than the length
of the value of the text field, then set them to the length of the value of the text
field.</li>
<li><p>If <var title="">start</var> is greater than the length of the value of the text field,
then set it to the length of the value of the text field.</li>

<li><p>If <var title="">end</var> is greater than the length of the value of the text field,
then set it to the length of the value of the text field.</li>

<li><p>Let <var title="">selection start</var> be the current value of the <code title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code> attribute.</li>

Expand Down Expand Up @@ -62580,7 +62582,7 @@ <h4 id=vcard><span class=secno>5.4.1 </span>vCard</h4>
run the following algorithm to <dfn id=extracting-a-vcard title="extracting a vCard">extract any vCard data represented
by those nodes</dfn> (only the first vCard is returned):</p>

<ol><li><p>If none of the nodes in <var title="">nodes</var> are <a href=#concept-item title=concept-item>items</a> with the <a href=#item-types title="item
<ol><!--CLEANUP--><li><p>If none of the nodes in <var title="">nodes</var> are <a href=#concept-item title=concept-item>items</a> with the <a href=#item-types title="item
types">item type</a> <code title=md-vcard><a href=#md-vcard>http://microformats.org/profile/hcard</a></code>, then
there is no vCard. Abort the algorithm, returning nothing.</li>

Expand Down Expand Up @@ -62877,7 +62879,7 @@ <h4 id=vcard><span class=secno>5.4.1 </span>vCard</h4>

</ol></li>

<li><p>If either of <var title="">sex</var> or <var title="">gender-identity</var> have a value that is not the empty
<li><p>If either <var title="">sex</var> or <var title="">gender-identity</var> has a value that is not the empty
string, <a href=#add-a-vcard-line>add a vCard line</a> with the type "<code title="">GENDER</code>" and the value consisting of the
concatenation of <var title="">sex</var>, a U+003B SEMICOLON
character (;), and <var title="">gender-identity</var> to <var title="">output</var>.</li>
Expand Down
12 changes: 7 additions & 5 deletions index
Original file line number Diff line number Diff line change
Expand Up @@ -54332,9 +54332,11 @@ out of 233&thinsp;257&thinsp;824 bytes available&lt;/meter&gt;&lt;/p&gt;</pre>
<li><p>If <var title="">start</var> is greater than <var title="">end</var>, then throw an
<code><a href=#indexsizeerror>IndexSizeError</a></code> exception and abort these steps.</li>

<li><p>If either <var title="">start</var> or <var title="">end</var> are greater than the length
of the value of the text field, then set them to the length of the value of the text
field.</li>
<li><p>If <var title="">start</var> is greater than the length of the value of the text field,
then set it to the length of the value of the text field.</li>

<li><p>If <var title="">end</var> is greater than the length of the value of the text field,
then set it to the length of the value of the text field.</li>

<li><p>Let <var title="">selection start</var> be the current value of the <code title=dom-textarea/input-selectionStart><a href=#dom-textarea/input-selectionstart>selectionStart</a></code> attribute.</li>

Expand Down Expand Up @@ -62580,7 +62582,7 @@ document.body.appendChild(outer);</pre>
run the following algorithm to <dfn id=extracting-a-vcard title="extracting a vCard">extract any vCard data represented
by those nodes</dfn> (only the first vCard is returned):</p>

<ol><li><p>If none of the nodes in <var title="">nodes</var> are <a href=#concept-item title=concept-item>items</a> with the <a href=#item-types title="item
<ol><!--CLEANUP--><li><p>If none of the nodes in <var title="">nodes</var> are <a href=#concept-item title=concept-item>items</a> with the <a href=#item-types title="item
types">item type</a> <code title=md-vcard><a href=#md-vcard>http://microformats.org/profile/hcard</a></code>, then
there is no vCard. Abort the algorithm, returning nothing.</li>

Expand Down Expand Up @@ -62877,7 +62879,7 @@ document.body.appendChild(outer);</pre>

</ol></li>

<li><p>If either of <var title="">sex</var> or <var title="">gender-identity</var> have a value that is not the empty
<li><p>If either <var title="">sex</var> or <var title="">gender-identity</var> has a value that is not the empty
string, <a href=#add-a-vcard-line>add a vCard line</a> with the type "<code title="">GENDER</code>" and the value consisting of the
concatenation of <var title="">sex</var>, a U+003B SEMICOLON
character (;), and <var title="">gender-identity</var> to <var title="">output</var>.</li>
Expand Down
13 changes: 8 additions & 5 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -59930,9 +59930,11 @@ out of 233&#x2009;257&#x2009;824 bytes available&lt;/meter>&lt;/p></pre>
<li><p>If <var title="">start</var> is greater than <var title="">end</var>, then throw an
<code>IndexSizeError</code> exception and abort these steps.</p></li>

<li><p>If either <var title="">start</var> or <var title="">end</var> are greater than the length
of the value of the text field, then set them to the length of the value of the text
field.</p></li>
<li><p>If <var title="">start</var> is greater than the length of the value of the text field,
then set it to the length of the value of the text field.</p></li>

<li><p>If <var title="">end</var> is greater than the length of the value of the text field,
then set it to the length of the value of the text field.</p></li>

<li><p>Let <var title="">selection start</var> be the current value of the <code
title="dom-textarea/input-selectionStart">selectionStart</code> attribute.</p></li>
Expand Down Expand Up @@ -69527,6 +69529,7 @@ document.body.appendChild(outer);</pre>
by those nodes</dfn> (only the first vCard is returned):</p>

<ol>
<!--CLEANUP-->

<li><p>If none of the nodes in <var title="">nodes</var> are <span
title="concept-item">items</span> with the <span title="item
Expand Down Expand Up @@ -69959,8 +69962,8 @@ document.body.appendChild(outer);</pre>

</li>

<li><p>If either of <var title="">sex</var> or <var
title="">gender-identity</var> have a value that is not the empty
<li><p>If either <var title="">sex</var> or <var
title="">gender-identity</var> has a value that is not the empty
string, <span>add a vCard line</span> with the type "<code
title="">GENDER</code>" and the value consisting of the
concatenation of <var title="">sex</var>, a U+003B SEMICOLON
Expand Down

0 comments on commit 44b28c8

Please sign in to comment.