[html5] r3148 - [] (0) getAttribute() and getAttributeNode() convert their argument to lowercase.
whatwg at whatwg.org
whatwg at whatwg.org
Thu May 28 17:48:21 PDT 2009
Author: ianh
Date: 2009-05-28 17:48:18 -0700 (Thu, 28 May 2009)
New Revision: 3148
Modified:
index
source
Log:
[] (0) getAttribute() and getAttributeNode() convert their argument to lowercase.
Modified: index
===================================================================
--- index 2009-05-29 00:38:37 UTC (rev 3147)
+++ index 2009-05-29 00:48:18 UTC (rev 3148)
@@ -9360,6 +9360,27 @@
</dd>
+ <dt><code title="">Element.getAttribute()</code></dt>
+ <dt><code title="">Element.getAttributeNode()</code></dt>
+
+ <dd>
+
+ <p>Attribute names are <a href=#converted-to-lowercase>converted to lowercase</a>.</p>
+
+ <div class=impl>
+
+ <p>Specifically: When the <code title="">Element.getAttribute()</code> method or the <code title="">Element.getAttributeNode()</code> method is invoked on
+ an <a href=#html-elements title="HTML elements">HTML element</a>, the name
+ argument must be <a href=#converted-to-lowercase>converted to lowercase</a> before the
+ element's attributes are examined.</p>
+
+ </div>
+
+ <p class=note>This doesn't apply to <code title="">Document.getAttributeNS()</code> and <code title="">Document.getAttributeNodeNS()</code>.</p>
+
+ </dd>
+
+
<dt><code title="">Document.getElementsByTagName()</code></dt>
<dt><code title="">Element.getElementsByTagName()</code></dt>
Modified: source
===================================================================
--- source 2009-05-29 00:38:37 UTC (rev 3147)
+++ source 2009-05-29 00:48:18 UTC (rev 3148)
@@ -9700,6 +9700,31 @@
</dd>
+ <dt><code title="">Element.getAttribute()</code></dt>
+ <dt><code title="">Element.getAttributeNode()</code></dt>
+
+ <dd>
+
+ <p>Attribute names are <span>converted to lowercase</span>.</p>
+
+ <div class="impl">
+
+ <p>Specifically: When the <code
+ title="">Element.getAttribute()</code> method or the <code
+ title="">Element.getAttributeNode()</code> method is invoked on
+ an <span title="HTML elements">HTML element</span>, the name
+ argument must be <span>converted to lowercase</span> before the
+ element's attributes are examined.</p>
+
+ </div>
+
+ <p class="note">This doesn't apply to <code
+ title="">Document.getAttributeNS()</code> and <code
+ title="">Document.getAttributeNodeNS()</code>.</p>
+
+ </dd>
+
+
<dt><code title="">Document.getElementsByTagName()</code></dt>
<dt><code title="">Element.getElementsByTagName()</code></dt>
More information about the Commit-Watchers
mailing list