Skip to content

Commit

Permalink
Add a common conjugation of case-sensitive for use by CSS. Also indic…
Browse files Browse the repository at this point in the history
…ate ranges are inclusive. Closes #33
  • Loading branch information
tabatkins authored and annevk committed May 7, 2015
1 parent afe5b5e commit c3d7ce0
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 32 deletions.
40 changes: 24 additions & 16 deletions dom.bs
Original file line number Diff line number Diff line change
Expand Up @@ -338,22 +338,30 @@ of <a>preceding</a>
<a>siblings</a>.


<h3 id='strings'>
Strings</h3>

Comparing two strings in a <dfn export>case-sensitive</dfn> manner means comparing them exactly, code point for code point.

Comparing two strings in a <dfn export>ASCII case-insensitive</dfn> manner means comparing them exactly, code point for code point, except that the characters in the range U+0041 .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and the corresponding characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z) are considered to also match.

<dfn export lt="converted to ascii uppercase">Converting a string to ASCII uppercase</dfn> means replacing all characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z) with the corresponding characters in the range U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).

<dfn export lt="converted to ascii lowercase">Converting a string to ASCII lowercase</dfn> means replacing all characters in the range U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) with the corresponding characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).

A string <var>pattern</var> is a <dfn export>prefix match</dfn> for a string
<var>s</var> when <var>pattern</var> is not longer than
<var>s</var> and truncating <var>s</var> to
<var>pattern</var>'s length leaves the two strings as matches of each
other.
<h3 id=strings>Strings</h3>

Comparing two strings in a
<dfn export lt="case-sensitive|case-sensitively">case-sensitive</dfn> manner means
comparing them exactly, code point for code point.

Comparing two strings in a
<dfn export lt="ASCII case-insensitive|ASCII case-insensitively">ASCII case-insensitive</dfn>
manner means comparing them exactly, code point for code point, except that the characters
in the range U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z),
inclusive, and the corresponding characters in the range U+0061 to U+007A (i.e.
LATIN SMALL LETTER A to LATIN SMALL LETTER Z), inclusive, are considered to also match.

<dfn export lt="converted to ASCII uppercase">Converting a string to ASCII uppercase</dfn>
means replacing all characters in the range U+0061 to U+007A, inclusive, with the
corresponding characters in the range U+0041 to U+005A, inclusive.

<dfn export lt="converted to ASCII lowercase">Converting a string to ASCII lowercase</dfn>
means replacing all characters in the range U+0041 to U+005A, inclusive, with the
corresponding characters in the range U+0061 to U+007A, inclusive.

A string <var>pattern</var> is a <dfn export>prefix match</dfn> for a string <var>s</var>
when <var>pattern</var> is not longer than <var>s</var> and truncating <var>s</var> to
<var>pattern</var>'s length leaves the two strings as matches of each other.


<h3 id="ordered sets">Ordered sets</h3>
Expand Down
41 changes: 25 additions & 16 deletions dom.html
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
<h1 class="p-name no-ref allcaps" id="title">DOM</h1>

<h2 class="no-num no-toc no-ref heading settled" id="subtitle"><span class="content">Living Standard — Last Updated
<time class="dt-updated" datetime="2015-05-04">4 May 2015</time></span></h2>
<time class="dt-updated" datetime="2015-05-07">7 May 2015</time></span></h2>

<div data-fill-with="spec-metadata">
<dl>
Expand Down Expand Up @@ -214,8 +214,7 @@ <h2 class="no-num no-toc no-ref heading settled" id="contents"><span class="cont
<ul class="toc">
<li><a href="#trees"><span class="secno">2.1</span> <span class="content">
Trees</span></a>
<li><a href="#strings"><span class="secno">2.2</span> <span class="content">
Strings</span></a>
<li><a href="#strings"><span class="secno">2.2</span> <span class="content">Strings</span></a>
<li><a href="#ordered sets"><span class="secno">2.3</span> <span class="content">Ordered sets</span></a>
<li><a href="#namespaces"><span class="secno">2.4</span> <span class="content">
Namespaces</span></a>
Expand Down Expand Up @@ -617,27 +616,35 @@ <h3 class="heading settled" data-level="2.1" id="trees"><span class="secno">2.1.



<h3 class="heading settled" data-level="2.2" id="strings"><span class="secno">2.2. </span><span class="content">
Strings</span><a class="self-link" href="#strings"></a></h3>
<h3 class="heading settled" data-level="2.2" id="strings"><span class="secno">2.2. </span><span class="content">Strings</span><a class="self-link" href="#strings"></a></h3>


<p>Comparing two strings in a <dfn data-dfn-type="dfn" data-export="" id="case_sensitive">case-sensitive<a class="self-link" href="#case_sensitive"></a></dfn> manner means comparing them exactly, code point for code point.</p>
<p>Comparing two strings in a
<dfn data-dfn-type="dfn" data-export="" data-lt="case-sensitive|case-sensitively" id="case_sensitive">case-sensitive<a class="self-link" href="#case_sensitive"></a></dfn> manner means
comparing them exactly, code point for code point.</p>


<p>Comparing two strings in a <dfn data-dfn-type="dfn" data-export="" id="ascii-case_insensitive">ASCII case-insensitive<a class="self-link" href="#ascii-case_insensitive"></a></dfn> manner means comparing them exactly, code point for code point, except that the characters in the range U+0041 .. U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) and the corresponding characters in the range U+0061 .. U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z) are considered to also match.</p>
<p>Comparing two strings in a
<dfn data-dfn-type="dfn" data-export="" data-lt="ASCII case-insensitive|ASCII case-insensitively" id="ascii-case_insensitive">ASCII case-insensitive<a class="self-link" href="#ascii-case_insensitive"></a></dfn>
manner means comparing them exactly, code point for code point, except that the characters
in the range U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z),
inclusive, and the corresponding characters in the range U+0061 to U+007A (i.e.
LATIN SMALL LETTER A to LATIN SMALL LETTER Z), inclusive, are considered to also match.</p>


<p><dfn data-dfn-type="dfn" data-export="" data-lt="converted to ascii uppercase" id="converted-to-ascii-uppercase">Converting a string to ASCII uppercase<a class="self-link" href="#converted-to-ascii-uppercase"></a></dfn> means replacing all characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z) with the corresponding characters in the range U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z).</p>
<p><dfn data-dfn-type="dfn" data-export="" data-lt="converted to ASCII uppercase" id="converted-to-ascii-uppercase">Converting a string to ASCII uppercase<a class="self-link" href="#converted-to-ascii-uppercase"></a></dfn>
means replacing all characters in the range U+0061 to U+007A, inclusive, with the
corresponding characters in the range U+0041 to U+005A, inclusive.</p>


<p><dfn data-dfn-type="dfn" data-export="" data-lt="converted to ascii lowercase" id="converted-to-ascii-lowercase">Converting a string to ASCII lowercase<a class="self-link" href="#converted-to-ascii-lowercase"></a></dfn> means replacing all characters in the range U+0041 to U+005A (i.e. LATIN CAPITAL LETTER A to LATIN CAPITAL LETTER Z) with the corresponding characters in the range U+0061 to U+007A (i.e. LATIN SMALL LETTER A to LATIN SMALL LETTER Z).</p>
<p><dfn data-dfn-type="dfn" data-export="" data-lt="converted to ASCII lowercase" id="converted-to-ascii-lowercase">Converting a string to ASCII lowercase<a class="self-link" href="#converted-to-ascii-lowercase"></a></dfn>
means replacing all characters in the range U+0041 to U+005A, inclusive, with the
corresponding characters in the range U+0061 to U+007A, inclusive.</p>


<p>A string <var>pattern</var> is a <dfn data-dfn-type="dfn" data-export="" id="prefix-match">prefix match<a class="self-link" href="#prefix-match"></a></dfn> for a string
<var>s</var> when <var>pattern</var> is not longer than
<var>s</var> and truncating <var>s</var> to
<var>pattern</var>’s length leaves the two strings as matches of each
other.</p>
<p>A string <var>pattern</var> is a <dfn data-dfn-type="dfn" data-export="" id="prefix-match">prefix match<a class="self-link" href="#prefix-match"></a></dfn> for a string <var>s</var>
when <var>pattern</var> is not longer than <var>s</var> and truncating <var>s</var> to
<var>pattern</var>’s length leaves the two strings as matches of each other.</p>



Expand Down Expand Up @@ -11946,6 +11953,7 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
<li>append(nodes), <a href="#dom-parentnode-appendnodes">4.2.3</a>
<li>append(nodes...), <a href="#dom-parentnode-appendnodes">4.2.3</a>
<li>ASCII case-insensitive, <a href="#ascii-case_insensitive">2.2</a>
<li>ASCII case-insensitively, <a href="#ascii-case_insensitive">2.2</a>
<li>AT_TARGET, <a href="#dom-event-at_target">3.2</a>
<li>Attr, <a href="#attr">4.8.2</a>
<li>attr
Expand Down Expand Up @@ -12007,6 +12015,7 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
</ul>
<li>CAPTURING_PHASE, <a href="#dom-event-capturing_phase">3.2</a>
<li>case-sensitive, <a href="#case_sensitive">2.2</a>
<li>case-sensitively, <a href="#case_sensitive">2.2</a>
<li>CDATASection, <a href="#cdatasection">8.2</a>
<li>CDATA_SECTION_NODE, <a href="#dom-node-cdata_section_node">4.4</a>
<li>change an attribute, <a href="#concept-element-attributes-change">4.8</a>
Expand Down Expand Up @@ -12068,8 +12077,8 @@ <h3 class="no-num heading settled" id="index-defined-here"><span class="content"
<li>content type, <a href="#concept-document-content-type">4.5</a>
<li>context object, <a href="#context-object">2</a>
<li>contiguous Text nodes, <a href="#contiguous-text-nodes">4.10</a>
<li>converted to ascii lowercase, <a href="#converted-to-ascii-lowercase">2.2</a>
<li>converted to ascii uppercase, <a href="#converted-to-ascii-uppercase">2.2</a>
<li>converted to ASCII lowercase, <a href="#converted-to-ascii-lowercase">2.2</a>
<li>converted to ASCII uppercase, <a href="#converted-to-ascii-uppercase">2.2</a>
<li>count
<ul>
<li>argument for CharacterData/substringData(offset, count), <a href="#dom-characterdata-substringdataoffset-count-count">4.9</a>
Expand Down

0 comments on commit c3d7ce0

Please sign in to comment.