Mathias Brodala: innerHTML

Beitrag lesen

Hallo ritschmanhard.

Das liegt daran, dass der IE an dieser Stelle einen BUG hat (selbes Beispiel mit div und p tags funktioniert...)

Ob Bug oder Feature ist fraglich. Siehe den Eintrag zu innerHTML in der MSDN:

The property [innerHTML] is read/write for all objects except the following, for which it is read-only: COL, COLGROUP, FRAMESET, HTML, STYLE, TABLE, TBODY, TFOOT, THEAD, TITLE, TR.

Einen schönen Donnerstag noch.

Gruß, Mathias

--
sh:( fo:} ch:? rl:( br: n4:~ ie:{ mo:| va:) de:> zu:} fl:( ss:) ls:[ js:|
„It is required that HTML be a common language between all platforms. This implies no device-specific markup, or anything which requires control over fonts or colors, for example. This is in keeping with the SGML ideal.“
[HTML Design Constraints: Logical Markup]