[Webkit-unassigned] [Bug 8007] createElement() and XHTML (A dynamically created table not rendered as such)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Aug 14 13:01:56 PDT 2007


http://bugs.webkit.org/show_bug.cgi?id=8007


robburns1 at mac.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |robburns1 at mac.com




------- Comment #20 from robburns1 at mac.com  2007-08-14 13:01 PDT -------
I think the most sensible behavior here (and one that would be typically
compatible with mozilla) would be to use the default namespace for
document.createElement Passing the default namesapce to createElementNS when
none is given just makes sense. This would be compatible with Mozilla whenever
the document the default namespace was "http://www.w3.org/1999/xhtml". It would
be compatible with Opera whenever the root element had the default namespace
(i.e., "xmlns='http://www.w3.org/1999/xhtml'").

In any event, invoking a method and leaving off an argument says to me use the
default. This would make this method much more universally useful rather than
only for XHTML. It would also make it behave consistently in HTML5 (though its
a little early to be citing this spec), since there the root element and the
default namesapce will always be 'http://www.w3.org/1999/xhtml'. However, in
XML this is a natural generalization of the createElement method so that it
works if the default namesapce is SVG or MathML or whatever.


-- 
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the webkit-unassigned mailing list