W3C home > Mailing lists > Public > www-style@w3.org > February 2012

Re: <di>? Please?

From: Lea Verou <leaverou@gmail.com>
Date: Sun, 05 Feb 2012 15:10:43 +0200
Message-ID: <4F2E7FD3.7090704@gmail.com>
To: 949468.94000.qm@smtp108-mob.biz.mail.ukl.yahoo.com
CC: Daniel Schattenkirchner <schattenkirchner.daniel@gmx.de>, www-style@w3.org
On 5/2/12 13:44, Daniel Schattenkirchner wrote:
>> You are wrong too. DI is not supported now by any browser.
>
> That is only half the truth. The HTML5 parser (as implemented in
> Firefox, Chrome, Opera and IE10) as well as the legacy parser used in
> IE9 support a di element as it has been proposed for quite a while.
>
> The easy path would be to allow the di element. Or div or whatever.
>
> Kind regards.
>

Not quite. <di> is "supported" just as much as any other arbitrary 
element. It doesn't have anything to do with being proposed for quite a 
while, it has to do with the fault-tolerant nature of HTML parsers.

To verify, run this JS snippet:

	Object.prototype.toString.call(document.createElement('di'))

The result will be "[object HTMLUnknownElement]" in all modern browsers, 
even IE9.

-- 
Lea Verou (http://lea.verou.me | @LeaVerou)
Received on Sunday, 5 February 2012 17:28:20 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT