[whatwg] Setting innerHTML to null or undefined

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