Skip to content

Commit

Permalink
[e] (0) Try to clarify case matching rules for selectors
Browse files Browse the repository at this point in the history
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 7d6be1f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 12 deletions.
16 changes: 12 additions & 4 deletions complete.html
Expand Up @@ -50767,10 +50767,17 @@ <h4 id=case-sensitivity>4.15.1 Case-sensitivity</h4>
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>
Expand Down Expand Up @@ -84939,6 +84946,7 @@ <h2 id=acknowledgements class=no-num>Acknowledgements</h2>
Šime Vidas,
Simon Montagu,
Simon Pieters,
Simon Sapin,
Simon Spiegel,
skeww,
Smylers,
Expand Down
16 changes: 12 additions & 4 deletions index
Expand Up @@ -50767,10 +50767,17 @@ contradict people?
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>
Expand Down Expand Up @@ -84939,6 +84946,7 @@ if (s = prompt('What is your name?')) {
Šime Vidas,
Simon Montagu,
Simon Pieters,
Simon Sapin,
Simon Spiegel,
skeww,
Smylers,
Expand Down
17 changes: 13 additions & 4 deletions source
Expand Up @@ -66920,10 +66920,18 @@ contradict people?
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>
Expand Down Expand Up @@ -116387,6 +116395,7 @@ INSERT INTERFACES HERE
&#x160;ime Vidas,
Simon Montagu,
Simon Pieters,
Simon Sapin,
Simon Spiegel,
skeww, <!-- on reddit -->
Smylers,
Expand Down

0 comments on commit 7d6be1f

Please sign in to comment.