W3C home > Mailing lists > Public > public-html-bugzilla@w3.org > January 2010

[Bug 8550] Add document.createElement("<div>") (Gecko quirks, IE)? [ms]

From: <bugzilla@wiggum.w3.org>
Date: Thu, 07 Jan 2010 19:07:21 +0000
To: public-html-bugzilla@w3.org
Message-Id: <E1NSxhZ-0002Ys-Qj@wiggum.w3.org>
http://www.w3.org/Bugs/Public/show_bug.cgi?id=8550





--- Comment #14 from Jonas Sicking <jonas@sicking.cc>  2010-01-07 19:07:20 ---
(In reply to comment #12)
> 2) Should createelement("<div>") make an element with tagName "div" or tagName
> "<div>"? In Mozilla it is the former, in IE the latter, supposedly either was
> good enough for the enterprise Web apps that depended on this in 2004.

This does not match my testing. Both gecko and IE create an element with
tagName "div" for document.createElement("<div");

IE even supports
document.createElement("<div class=foo>");

which creates an element with a className of "foo". (any other attribute works
equally well). Gecko does not support this attribute syntax though.

I guess I don't feel strongly here. I'd be fine with attempting to remove this
quirk from gecko. Dunno how much success we'll have with convincing Microsoft
of the same though.


-- 
Configure bugmail: http://www.w3.org/Bugs/Public/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Received on Thursday, 7 January 2010 19:07:23 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 20:01:09 UTC