Skip to content
Permalink
Browse files

[e] (0) Try to clarify case matching rules for selectors

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26560
Affected topics: CSS, HTML

git-svn-id: http://svn.whatwg.org/webapps@8764 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Sep 12, 2014
1 parent 9fc5515 commit 7d6be1fe4334c558bdea36f3e71eb15552b667c8
Showing with 37 additions and 12 deletions.
  1. +12 −4 complete.html
  2. +12 −4 index
  3. +13 −4 source
comparison is <a href=#case-sensitive id=case-sensitivity:case-sensitive-2>case-sensitive</a>.</p>


<p>Everything else (attribute values on <a href=#html-elements id=case-sensitivity:html-elements-3>HTML elements</a>, IDs and classes in
<a href=#no-quirks-mode id=case-sensitivity:no-quirks-mode>no-quirks mode</a> and <a href=#limited-quirks-mode id=case-sensitivity:limited-quirks-mode>limited-quirks mode</a>, and element names, attribute
names, and attribute values in <a href=#xml-documents id=case-sensitivity:xml-documents>XML documents</a>) must be treated as
<a href=#case-sensitive id=case-sensitivity:case-sensitive-3>case-sensitive</a> for the purposes of selector matching.</p>
<p>Everything else must be treated as entirely <a href=#case-sensitive id=case-sensitivity:case-sensitive-3>case-sensitive</a> for the purposes of
selector matching. This includes:</p>

<ul class=brief><li> IDs and classes in <a href=#no-quirks-mode id=case-sensitivity:no-quirks-mode>no-quirks mode</a> and <a href=#limited-quirks-mode id=case-sensitivity:limited-quirks-mode>limited-quirks mode</a>
<li> the names of elements not in the <a href=#html-namespace-2 id=case-sensitivity:html-namespace-2>HTML namespace</a>
<li> the names of <a href=#html-elements id=case-sensitivity:html-elements-3>HTML elements</a> in <a href=#xml-documents id=case-sensitivity:xml-documents>XML documents</a>
<li> the names of attributes of elements not in the <a href=#html-namespace-2 id=case-sensitivity:html-namespace-2-2>HTML namespace</a>
<li> the names of attributes of <a href=#html-elements id=case-sensitivity:html-elements-4>HTML elements</a> in <a href=#xml-documents id=case-sensitivity:xml-documents-2>XML documents</a>
<li> the names of attributes that themselves have namespaces
<li> all attribute values
</ul>


<h4 id=pseudo-classes>4.15.2 Pseudo-classes</h4>
Šime Vidas,
Simon Montagu,
Simon Pieters,
Simon Sapin,
Simon Spiegel,
skeww,
Smylers,
16 index
comparison is <a href=#case-sensitive id=case-sensitivity:case-sensitive-2>case-sensitive</a>.</p>


<p>Everything else (attribute values on <a href=#html-elements id=case-sensitivity:html-elements-3>HTML elements</a>, IDs and classes in
<a href=#no-quirks-mode id=case-sensitivity:no-quirks-mode>no-quirks mode</a> and <a href=#limited-quirks-mode id=case-sensitivity:limited-quirks-mode>limited-quirks mode</a>, and element names, attribute
names, and attribute values in <a href=#xml-documents id=case-sensitivity:xml-documents>XML documents</a>) must be treated as
<a href=#case-sensitive id=case-sensitivity:case-sensitive-3>case-sensitive</a> for the purposes of selector matching.</p>
<p>Everything else must be treated as entirely <a href=#case-sensitive id=case-sensitivity:case-sensitive-3>case-sensitive</a> for the purposes of
selector matching. This includes:</p>

<ul class=brief><li> IDs and classes in <a href=#no-quirks-mode id=case-sensitivity:no-quirks-mode>no-quirks mode</a> and <a href=#limited-quirks-mode id=case-sensitivity:limited-quirks-mode>limited-quirks mode</a>
<li> the names of elements not in the <a href=#html-namespace-2 id=case-sensitivity:html-namespace-2>HTML namespace</a>
<li> the names of <a href=#html-elements id=case-sensitivity:html-elements-3>HTML elements</a> in <a href=#xml-documents id=case-sensitivity:xml-documents>XML documents</a>
<li> the names of attributes of elements not in the <a href=#html-namespace-2 id=case-sensitivity:html-namespace-2-2>HTML namespace</a>
<li> the names of attributes of <a href=#html-elements id=case-sensitivity:html-elements-4>HTML elements</a> in <a href=#xml-documents id=case-sensitivity:xml-documents-2>XML documents</a>
<li> the names of attributes that themselves have namespaces
<li> all attribute values
</ul>


<h4 id=pseudo-classes>4.15.2 Pseudo-classes</h4>
Šime Vidas,
Simon Montagu,
Simon Pieters,
Simon Sapin,
Simon Spiegel,
skeww,
Smylers,
17 source
comparison is <span>case-sensitive</span>.</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2624 -->

<p>Everything else (attribute values on <span>HTML elements</span>, IDs and classes in
<span>no-quirks mode</span> and <span>limited-quirks mode</span>, and element names, attribute
names, and attribute values in <span>XML documents</span>) must be treated as
<span>case-sensitive</span> for the purposes of selector matching.</p>
<p>Everything else must be treated as entirely <span>case-sensitive</span> for the purposes of
selector matching. This includes:</p>

<ul class=brief>
<li> IDs and classes in <span>no-quirks mode</span> and <span>limited-quirks mode</span>
<li> the names of elements not in the <span>HTML namespace</span>
<li> the names of <span>HTML elements</span> in <span>XML documents</span>
<li> the names of attributes of elements not in the <span>HTML namespace</span>
<li> the names of attributes of <span>HTML elements</span> in <span>XML documents</span>
<li> the names of attributes that themselves have namespaces
<li> all attribute values
</ul>


<h4>Pseudo-classes</h4>
&#x160;ime Vidas,
Simon Montagu,
Simon Pieters,
Simon Sapin,
Simon Spiegel,
skeww, <!-- on reddit -->
Smylers,

0 comments on commit 7d6be1f

Please sign in to comment.
You can’t perform that action at this time.