W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2008

Re: [dom3core] getAttribute

From: Garrett Smith <dhtmlkitchen@gmail.com>
Date: Sun, 5 Oct 2008 17:24:32 -0700
Message-ID: <c9e12660810051724i19cbe957u26fff9ae42fe560c@mail.gmail.com>
To: "Brendan Eich" <brendan@meer.net>
Cc: www-dom@w3.org

On Tue, Dec 6, 2005 at 1:55 PM, Brendan Eich <brendan@meer.net> wrote:
>
>   Then, after adoption, IE unilaterally changed it,
>
>
> This is not so.  IE always implemented an odd mixture of nullable string
> valued properties and non-nullable string-valued properties (which when
> missing are returned as ""), and furthermore mapped properties to attributes
> directly, via getAttribute.
>

To be technically correct, IE will sometimes return a null pointer
that gets treated as an empty string.

http://groups.google.com/group/microsoft.public.scripting.jscript/msg/67314e7b33d9336e?dmode=source

> So this has everything to do with backward compatibility going back to IE 4.
>  The Mozilla experiment that you describe was much later, and suffered the
> nullability confounder.  I just spoke with Johnny Stenback about this and he
> said there may have been confusion when testing IE between nullable and
> non-nullable attributes mapped from DOM JS properties.
>

This is an interesting thread, for historical reasons.

> /be
>
>
Received on Monday, 6 October 2008 00:25:07 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:59 GMT