[whatwg] Setting innerHTML to null or undefined

On 05/06/07, Michael A. Puls II <shadow2531 at gmail.com> wrote:
> On 6/4/07, Jonas Sicking <jonas at sicking.cc> wrote:
> > I'd really dislike having to have this one property behave differently
> > than other text properties in the DOM. How do opera/ie deal with other
> > text properties like .src, .id, .textContent?
>
> For .src and .id, IE and Opera set "null".
> Opera does the same for textContent.
>
> For .src, this obviously means that IE and Opera will then return the
> directory of the page + "null" where as FF will return the URI to the
> page.
>
> The way IE and Opera do "null" doesn't seem to be just limited to innerHTML.

Seems to me like they are simply using the ECMAScript ToString
algorithm, unless I'm mistaken. That's probably a good thing to
specify for this, too.
-- 
David "liorean" Andersson

Received on Monday, 4 June 2007 17:45:34 UTC