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

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