W3C home > Mailing lists > Public > public-html-diffs@w3.org > May 2009

getAttribute() and getAttributeNode() convert their argument to lowercase. (whatwg r3148)

From: poot <cvsmail@w3.org>
Date: Fri, 29 May 2009 09:49:57 +0900 (JST)
To: public-html-diffs@w3.org
Message-Id: <20090529004957.B8A5D2BC33@toro.w3.mag.keio.ac.jp>
getAttribute() and getAttributeNode() convert their argument to
lowercase. (whatwg r3148)

Diffs for this change per section: 
http://people.w3.org/mike/diffs/html5/spec/Overview.1.2304.html#apis-in-html-documents

http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html
http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.2303&r2=1.2304&f=h
http://html5.org/tools/web-apps-tracker?from=3147&to=3148

===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.2303
retrieving revision 1.2304
diff -u -d -r1.2303 -r1.2304
--- Overview.html	29 May 2009 00:38:44 -0000	1.2303
+++ Overview.html	29 May 2009 00:48:24 -0000	1.2304
@@ -8330,6 +8330,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>
Received on Friday, 29 May 2009 00:51:51 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Saturday, 18 December 2010 06:14:05 GMT