Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[e] (0) The quirky class/id selector matching case logic moved to sel…
…ectors Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=23781 Affected topics: CSS, HTML git-svn-id: http://svn.whatwg.org/webapps@8610 340c8d12-0b0e-0410-8428-c7bf67bfef74
- Loading branch information
Showing
with
17 additions
and 30 deletions.
- +6 −10 complete.html
- +6 −10 index
- +5 −10 source
|
||
<h4>Case-sensitivity</h4> | ||
|
||
<p>The Selectors specification leaves the case-sensitivity of IDs, classes, element names, | ||
attribute names, and attribute values to be defined by the host language. <a | ||
href="#refsSELECTORS">[SELECTORS]</a></p> | ||
<p>The Selectors specification leaves the case-sensitivity of element names, attribute names, and | ||
attribute values to be defined by the host language. <a href="#refsSELECTORS">[SELECTORS]</a></p> | ||
|
||
<p>The <span data-x="concept-id">unique identifier</span> of <span>HTML elements</span> in | ||
documents that are in <span>quirks mode</span> must be treated as <span>ASCII | ||
case-insensitive</span> for the purposes of selector matching.</p> | ||
|
||
<p>Classes from the <code data-x="attr-class">class</code> attribute of <span>HTML elements</span> | ||
in documents that are in <span>quirks mode</span> must be treated as <span>ASCII | ||
case-insensitive</span> for the purposes of selector matching.</p> | ||
<p class="note">The Selectors specification defines that ID and class selectors, when matched | ||
against elements in documents that are in <span>quirks mode</span>, will be work in an <span>ASCII | ||
case-insensitive</span>.</p> | ||
|
||
<p>When comparing a CSS element type selector to the names of <span>HTML elements</span> in | ||
<span>HTML documents</span>, the CSS element type selector must first be <span>converted to ASCII |