Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[giow] (2) usemap='#foo' no longer does case-insensitive matching aga…
…inst id=''. (credit: js)

git-svn-id: http://svn.whatwg.org/webapps@2567 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 24, 2008
1 parent 447abc7 commit 2458ea0
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 7 deletions.
11 changes: 8 additions & 3 deletions index
Expand Up @@ -3757,15 +3757,20 @@
string being parsed up to the end of that string.</li>

<li><p>Return the first element of type <var title="">type</var>
that has an <code title=attr-id><a href=#the-id-attribute>id</a></code> or <code title="">name</code> attribute whose value is a <a href=#compatibility-caseless>compatibility
caseless</a> match for <var title="">s</var>.</li>
that has an <code title=attr-id><a href=#the-id-attribute>id</a></code> attribute whose value
is a <a href=#case-sensitive>case-sensitive</a> match for <var title="">s</var> or
a <code title="">name</code> attribute whose value is a
<a href=#compatibility-caseless>compatibility caseless</a> match for <var title="">s</var>.</li>

<!--
That's what IE does:
IE is also doing case-insensitive id="" matching.
Tests:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cmap%20name%3D%22T%26eacute%3B%26%23x01F1%3B%26%23x2075%3B%22%3E%3Carea%20href%3D%22%2F%22%20shape%3Drect%20coords%3D0%2C0%2C200%2C200%3E%3C%2Fmap%3E%0A%3Cimg%20usemap%3D%22%23t%26Eacute%3BDZ5%22%20src%3Dimage%3E
...except that doesn't explain why this fails:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cmap%20name%3D%22T%26eacute%3B%26%23x01F1%3B%26%23x2075%3B%26%23xFB01%3B%22%3E%3Carea%20href%3D%22%2F%22%20shape%3Drect%20coords%3D0%2C0%2C200%2C200%3E%3C%2Fmap%3E%0A%3Cimg%20usemap%3D%22%23t%26Eacute%3BDZ5F%26%23x0131%3B%26%23x0307%3B%22%20src%3Dimage%3E
maybe they just don't know about combining dot above?
-->

</ol><h3 id=urls><span class=secno>2.5 </span>URLs</h3>

<p>This specification defines the term <a href=#url>URL</a>, and defines
Expand Down
13 changes: 9 additions & 4 deletions source
Expand Up @@ -3307,16 +3307,21 @@
string being parsed up to the end of that string.</p></li>

<li><p>Return the first element of type <var title="">type</var>
that has an <code title="attr-id">id</code> or <code
title="">name</code> attribute whose value is a <span>compatibility
caseless</span> match for <var title="">s</var>.</p></li>
that has an <code title="attr-id">id</code> attribute whose value
is a <span>case-sensitive</span> match for <var title="">s</var> or
a <code title="">name</code> attribute whose value is a
<span>compatibility caseless</span> match for <var
title="">s</var>.</p></li>

<!--
That's what IE does:
IE is also doing case-insensitive id="" matching.
Tests:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cmap%20name%3D%22T%26eacute%3B%26%23x01F1%3B%26%23x2075%3B%22%3E%3Carea%20href%3D%22%2F%22%20shape%3Drect%20coords%3D0%2C0%2C200%2C200%3E%3C%2Fmap%3E%0A%3Cimg%20usemap%3D%22%23t%26Eacute%3BDZ5%22%20src%3Dimage%3E
...except that doesn't explain why this fails:
http://software.hixie.ch/utilities/js/live-dom-viewer/?%3C!DOCTYPE%20html%3E%0A%3Cmap%20name%3D%22T%26eacute%3B%26%23x01F1%3B%26%23x2075%3B%26%23xFB01%3B%22%3E%3Carea%20href%3D%22%2F%22%20shape%3Drect%20coords%3D0%2C0%2C200%2C200%3E%3C%2Fmap%3E%0A%3Cimg%20usemap%3D%22%23t%26Eacute%3BDZ5F%26%23x0131%3B%26%23x0307%3B%22%20src%3Dimage%3E
maybe they just don't know about combining dot above?
-->

</ol>


Expand Down

0 comments on commit 2458ea0

Please sign in to comment.