On Mar 20, 6:18 am, masterleep <[email protected]> wrote:
> OK, I found this particular one... if you call
> input_elem.readAttribute('value');
> on an input element, and the value is equal to the empty string, then
> in IE8 the result is null.
Then that is a bug in IE 8. readAttribute uses getAttribute, which
returns a string in browsers that are compliant with the W3C DOM Core
spec:
<URL: http://www.w3.org/TR/DOM-Level-2-Core/core.html#ID-666EE0F9 >
> On other browsers, the result is the empty
> string.
Which is compliant with the spec.
An alternative is to use the DOM property for HTML attributes (i.e.
inputElement.value) - what does that return (I don't have access to IE
8 at the moment)?
--
Rob
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/prototype-scriptaculous?hl=en
-~----------~----~----~----~------~----~------~--~---