Skip to content

Commit

Permalink
[] (0) Define interaction with CSS case-sensitivity rules.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@3306 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jun 23, 2009
1 parent 437d068 commit de5c4f8
Show file tree
Hide file tree
Showing 2 changed files with 140 additions and 17 deletions.
79 changes: 70 additions & 9 deletions index
Expand Up @@ -1058,7 +1058,9 @@
<li><a href=#the-title-attribute-0><span class=secno>11.6.3 </span>The <code title=attr-title>title</code> attribute</a></li>
<li><a href=#editing-hosts><span class=secno>11.6.4 </span>Editing hosts</a></ol></li>
<li><a href=#print-media><span class=secno>11.7 </span>Print media</a></li>
<li><a href=#interaction-with-css><span class=secno>11.8 </span>Interaction with CSS</a></ol></li>
<li><a href=#interaction-with-css><span class=secno>11.8 </span>Interaction with CSS</a>
<ol>
<li><a href=#selectors><span class=secno>11.8.1 </span>Selectors</a></ol></ol></li>
<li><a href=#obsolete-features><span class=secno>12 </span>Obsolete features</a>
<ol>
<li><a href=#self-contained-features><span class=secno>12.1 </span>Self-contained features</a>
Expand Down Expand Up @@ -69530,14 +69532,6 @@ time:empty { binding: <i title="">time</i>; }</pre>

<h3 id=interaction-with-css><span class=secno>11.8 </span>Interaction with CSS</h3>

<!-- XXX this should be normative, so we'll have to move it out of
this section -->

<p class=XXX>Must define that in CSS, tag and attribute
names in HTML documents, and class names in quirks mode documents,
are case-insensitive, as well as saying which attribute values must
be compared case-insensitively.</p>

<!-- XXX

Extensions to CSS
Expand All @@ -69549,6 +69543,73 @@ time:empty { binding: <i title="">time</i>; }</pre>

</div>

<h4 id=selectors><span class=secno>11.8.1 </span>Selectors</h4>

<p>Attribute and element <em>names</em> of <a href=#html-elements>HTML
elements</a> in <a href=#html-documents>HTML documents</a> must be treated as
case-insensitive.</p>

<p>Classes from the <code title=attr-class><a href=#classes>class</a></code> attribute
of <a href=#html-elements>HTML elements</a> in documents that are in <a href=#quirks-mode>quirks
mode</a> must be treated as case-insensitive.</p>

<p>Attribute selectors on an <a href=#html-elements title="HTML elements">HTML
element</a> in an <a href=#html-documents title="HTML documents">HTML
document</a> must treat the <em>values</em> of attributes with
the following names as case-insensitive:</p>

<!-- based on Mozilla's list, which was itself based on HTML4 -->
<!-- WebKit's was identical at the time of writing except as noted below -->
<ul><li><code title="">accept</code>
<li><code title="">accept-charset</code>
<li><code title="">align</code>
<li><code title="">alink</code>
<li><code title="">axis</code>
<li><code title="">bgcolor</code>
<li><code title="">charset</code>
<li><code title="">checked</code>
<li><code title="">clear</code>
<li><code title="">codetype</code>
<li><code title="">color</code>
<li><code title="">compact</code>
<li><code title="">declare</code>
<li><code title="">defer</code>
<li><code title="">dir</code>
<li><code title="">direction</code> <!-- not in webkit -->
<li><code title="">disabled</code>
<li><code title="">enctype</code>
<li><code title="">face</code>
<li><code title="">frame</code>
<li><code title="">hreflang</code>
<li><code title="">http-equiv</code>
<li><code title="">lang</code>
<li><code title="">language</code>
<li><code title="">link</code>
<li><code title="">media</code>
<li><code title="">method</code>
<li><code title="">multiple</code>
<li><code title="">nohref</code>
<li><code title="">noresize</code>
<li><code title="">noshade</code>
<li><code title="">nowrap</code>
<li><code title="">readonly</code>
<li><code title="">rel</code>
<li><code title="">rev</code>
<li><code title="">rules</code>
<li><code title="">scope</code>
<li><code title="">scrolling</code>
<li><code title="">selected</code>
<li><code title="">shape</code>
<li><code title="">target</code>
<li><code title="">text</code>
<li><code title="">type</code>
<li><code title="">valign</code>
<li><code title="">valuetype</code>
<li><code title="">vlink</code>
</ul><p>All other <a href=#html-elements>HTML elements</a> and all attribute names and
values on <a href=#html-elements>HTML elements</a> must be treated as
case-sensitive.</p>


<div class=impl>

Expand Down
78 changes: 70 additions & 8 deletions source
Expand Up @@ -81995,14 +81995,6 @@ time:empty { binding: <i title="">time</i>; }</pre>

<h3>Interaction with CSS</h3>

<!-- XXX this should be normative, so we'll have to move it out of
this section -->

<p class="XXX">Must define that in CSS, tag and attribute
names in HTML documents, and class names in quirks mode documents,
are case-insensitive, as well as saying which attribute values must
be compared case-insensitively.</p>

<!-- XXX

Extensions to CSS
Expand All @@ -82014,6 +82006,76 @@ time:empty { binding: <i title="">time</i>; }</pre>

</div>

<h4>Selectors</h4>

<p>Attribute and element <em>names</em> of <span>HTML
elements</span> in <span>HTML documents</span> must be treated as
case-insensitive.</p>

<p>Classes from the <code title="attr-class">class</code> attribute
of <span>HTML elements</span> in documents that are in <span>quirks
mode</span> must be treated as case-insensitive.</p>

<p>Attribute selectors on an <span title="HTML elements">HTML
element</span> in an <span title="HTML documents">HTML
document</span> must treat the <em>values</em> of attributes with
the following names as case-insensitive:</p>

<!-- based on Mozilla's list, which was itself based on HTML4 -->
<!-- WebKit's was identical at the time of writing except as noted below -->
<ul>
<li><code title="">accept</code>
<li><code title="">accept-charset</code>
<li><code title="">align</code>
<li><code title="">alink</code>
<li><code title="">axis</code>
<li><code title="">bgcolor</code>
<li><code title="">charset</code>
<li><code title="">checked</code>
<li><code title="">clear</code>
<li><code title="">codetype</code>
<li><code title="">color</code>
<li><code title="">compact</code>
<li><code title="">declare</code>
<li><code title="">defer</code>
<li><code title="">dir</code>
<li><code title="">direction</code> <!-- not in webkit -->
<li><code title="">disabled</code>
<li><code title="">enctype</code>
<li><code title="">face</code>
<li><code title="">frame</code>
<li><code title="">hreflang</code>
<li><code title="">http-equiv</code>
<li><code title="">lang</code>
<li><code title="">language</code>
<li><code title="">link</code>
<li><code title="">media</code>
<li><code title="">method</code>
<li><code title="">multiple</code>
<li><code title="">nohref</code>
<li><code title="">noresize</code>
<li><code title="">noshade</code>
<li><code title="">nowrap</code>
<li><code title="">readonly</code>
<li><code title="">rel</code>
<li><code title="">rev</code>
<li><code title="">rules</code>
<li><code title="">scope</code>
<li><code title="">scrolling</code>
<li><code title="">selected</code>
<li><code title="">shape</code>
<li><code title="">target</code>
<li><code title="">text</code>
<li><code title="">type</code>
<li><code title="">valign</code>
<li><code title="">valuetype</code>
<li><code title="">vlink</code>
</ul>

<p>All other <span>HTML elements</span> and all attribute names and
values on <span>HTML elements</span> must be treated as
case-sensitive.</p>


<div class="impl">

Expand Down

0 comments on commit de5c4f8

Please sign in to comment.