W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2007

[whatwg] Setting innerHTML to null or undefined

From: Jonas Sicking <jonas@sicking.cc>
Date: Mon, 04 Jun 2007 15:36:31 -0700
Message-ID: <466493EF.7080508@sicking.cc>
Anne van Kesteren wrote:
> For .innerHTML = null Opera and Internet Explorer act as if the literal 
> string "null" was used. Firefox acts as if "" was used.
> 
> For .innerHTML = undefined Opera, Firefox and Internet Explorer act as 
> if the literal string "undefined" was used.

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?

/ Jonas
Received on Monday, 4 June 2007 15:36:31 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:56 UTC