Skip to content

Commit

Permalink
[giow] (3) Match reality better in terms of selector case-sensitivity…
Browse files Browse the repository at this point in the history
… for attributes as well

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

git-svn-id: http://svn.whatwg.org/webapps@8261 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Nov 7, 2013
1 parent 66df7ed commit 497e6a6
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 17 deletions.
14 changes: 8 additions & 6 deletions complete.html
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 6 November 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 7 November 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -59300,17 +59300,19 @@ <h4 id=case-sensitivity><span class=secno>4.15.1 </span>Case-sensitivity</h4>
in documents that are in <a href=#quirks-mode>quirks mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> for the purposes of selector matching.</p>

<!--CLEANUP-->
<p>Attribute <em>names</em> of <a href=#html-elements>HTML elements</a> in <a href=#html-documents>HTML
documents</a> must be treated as <a href=#ascii-case-insensitive>ASCII case-insensitive</a> for the purposes of
selector matching.</p>

<p>When comparing a CSS element type selector to the names of <a href=#html-elements>HTML elements</a> in
<a href=#html-documents>HTML documents</a>, the CSS element type selector must first be <a href=#converted-to-ascii-lowercase>converted to ASCII
lowercase</a>. The same selector when compared to other elements must be compared according to
its original case. In both cases, the comparison is <a href=#case-sensitive>case-sensitive</a>.</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 -->

<p>When comparing the name part of a CSS attribute selector to the names of namespace-less
attributes on <a href=#html-elements>HTML elements</a> in <a href=#html-documents>HTML documents</a>, the name part of the CSS
attribute selector must first be <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>. The same selector when
compared to other attributes must be compared according to its original case. In both cases, the
comparison is <a href=#case-sensitive>case-sensitive</a>.</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2624 -->

<p>Everything else (attribute values on <a href=#html-elements>HTML elements</a>, IDs and classes in
<a href=#no-quirks-mode>no-quirks mode</a> and <a href=#limited-quirks-mode>limited-quirks mode</a>, and element names, attribute
names, and attribute values in <a href=#xml-documents>XML documents</a>) must be treated as
Expand Down
14 changes: 8 additions & 6 deletions index
Expand Up @@ -298,7 +298,7 @@

<header class=head id=head><p><a href=http://www.whatwg.org/ class=logo><img width=101 src=/images/logo alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 6 November 2013</h2>
<h2 class="no-num no-toc">Living Standard &mdash; Last Updated 7 November 2013</h2>
</hgroup><dl><dt><strong>Web developer edition:</strong></dt>
<dd><strong><a href=http://developers.whatwg.org/>http://developers.whatwg.org/</a></strong></dd>
<dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -59300,17 +59300,19 @@ contradict people?
in documents that are in <a href=#quirks-mode>quirks mode</a> must be treated as <a href=#ascii-case-insensitive>ASCII
case-insensitive</a> for the purposes of selector matching.</p>

<!--CLEANUP-->
<p>Attribute <em>names</em> of <a href=#html-elements>HTML elements</a> in <a href=#html-documents>HTML
documents</a> must be treated as <a href=#ascii-case-insensitive>ASCII case-insensitive</a> for the purposes of
selector matching.</p>

<p>When comparing a CSS element type selector to the names of <a href=#html-elements>HTML elements</a> in
<a href=#html-documents>HTML documents</a>, the CSS element type selector must first be <a href=#converted-to-ascii-lowercase>converted to ASCII
lowercase</a>. The same selector when compared to other elements must be compared according to
its original case. In both cases, the comparison is <a href=#case-sensitive>case-sensitive</a>.</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 -->

<p>When comparing the name part of a CSS attribute selector to the names of namespace-less
attributes on <a href=#html-elements>HTML elements</a> in <a href=#html-documents>HTML documents</a>, the name part of the CSS
attribute selector must first be <a href=#converted-to-ascii-lowercase>converted to ASCII lowercase</a>. The same selector when
compared to other attributes must be compared according to its original case. In both cases, the
comparison is <a href=#case-sensitive>case-sensitive</a>.</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2624 -->

<p>Everything else (attribute values on <a href=#html-elements>HTML elements</a>, IDs and classes in
<a href=#no-quirks-mode>no-quirks mode</a> and <a href=#limited-quirks-mode>limited-quirks mode</a>, and element names, attribute
names, and attribute values in <a href=#xml-documents>XML documents</a>) must be treated as
Expand Down
12 changes: 7 additions & 5 deletions source
Expand Up @@ -65764,17 +65764,19 @@ contradict people?
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>

<!--CLEANUP-->
<p>Attribute <em>names</em> of <span>HTML elements</span> in <span>HTML
documents</span> must be treated as <span>ASCII case-insensitive</span> for the purposes of
selector matching.</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
lowercase</span>. The same selector when compared to other elements must be compared according to
its original case. In both cases, the comparison is <span>case-sensitive</span>.</p>
<!-- http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=2623 -->

<p>When comparing the name part of a CSS attribute selector to the names of namespace-less
attributes on <span>HTML elements</span> in <span>HTML documents</span>, the name part of the CSS
attribute selector must first be <span>converted to ASCII lowercase</span>. The same selector when
compared to other attributes must be compared according to its original case. In both cases, the
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
Expand Down

0 comments on commit 497e6a6

Please sign in to comment.