Steve Blades wrote:
That's odd? According to the w3c:
'XHTML documents must use lower case for all HTML element and attribute
names. This difference is necessary because XML is case-sensitive e.g.
<li> and <LI> are different tags.'
ref: http://www.w3.org/TR/xhtml1/#h-4.2
Do not mix XHTML, e.g. markup and how DOM properties are exposed.
Especially the following is important:
"The DOM naming conventions always determine the name of the exposed
property, and are independent of the case of the attribute in the source
document."
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-642250288
And the DOM naming convention:
"The property or method name starts with the initial keyword in
lowercase, and each subsequent word starts with a capital letter."
http://www.w3.org/TR/DOM-Level-2-HTML/html.html#ID-2041995112
I assume the reason why "maxlength" does not work here is because it is
an unknown attribute for the textarea element, thus if you set in in the
HTML source it gets exposed as "maxLength" according to the DOM naming
conventions.
--Klaus