W3C home > Mailing lists > Public > whatwg@whatwg.org > September 2009

[whatwg] The new content model for <details> breaks rendering in MSIE5-7

From: Dean Edwards <dean.edwards@gmail.com>
Date: Tue, 29 Sep 2009 17:55:29 +0100
Message-ID: <4AC23C01.7030203@gmail.com>
On 29/09/2009 16:12, Tab Atkins Jr. wrote:
> On Tue, Sep 29, 2009 at 8:47 AM, Dean Edwards<dean.edwards at gmail.com>  wrote:
>> This will also affect the<figure>  element.
>> Test case:
>> http://dean.edwards.name/test/details.html
> Luckily this has already been discovered and hacked around:
> http://lists.w3.org/Archives/Public/public-html/2009Sep/0802.html
> This hack can also be applied via document.write(), so it can be
> integrated into existing scripts that fix legacy IE renderings via the
> document.createElement() hack.  (The only restriction is that it
> immediately switches IE parsing into body mode, so it must be the very
> last thing in<head>.)

I can't get it to work using document.write(). Do you have a live example?

And kudos to the guy that discovered this hack. I have no idea how it 
works but it seems to do the trick. Do you have any background to this 
hack apart from what was on the W3C list?

Received on Tuesday, 29 September 2009 09:55:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:52 UTC