On 10/6/05, Jim Ley <[EMAIL PROTECTED]> wrote:
>
>
> "Jonathan Watt" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > On 10/6/05, Richard Smith <[EMAIL PROTECTED]> wrote:
> > The problem is, browsers (such as Mozilla) decided long
> > ago to make a consistant stand.
>
> Unfortunately not, Mozilla's DOM created from text/html documents are
> namespace aware (you can create and it will render elements from other
> understoof namespaces) however here createElement works exactly as was
> requested.


HTML documents implement all of DOM 2, so even though HTML is not
namespaced, you can create namespaced element using the namespace aware
methods, sure. And since you aren't dealing with a namespaced document,
plain createElement will create a non-namespaced HTML element that works in
that document, sure.

So Mozilla's stand is far from consistent, with text/html documents
> createElement works as the OP wants, with application/xhtml+xml or
> image/svg+xml createElement does not work how the OP wants despite the DOM
> being equivalently namespace aware.


The difference is that text/html is plain (namespace ignorant) HTML. You
aren't dealing with a namespaced document so you use createElement. On the
other hand application/xhtml+xml is XHTML. In this case you're dealing with
a namespaced document so you need to use createElementNS. When I said
"consistent" I meant consistant across all namespaced XML. The above
behaviour doesn't contradict this for me.

-Jonathan


[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/1U_rlB/TM
--------------------------------------------------------------------~-> 

-----
To unsubscribe send a message to: [EMAIL PROTECTED]
-or-
visit http://groups.yahoo.com/group/svg-developers and click "edit my 
membership"
---- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/svg-developers/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 




Reply via email to