On Thu, 06 Oct 2005 11:30:58 +0100
Richard Smith <[EMAIL PROTECTED]> wrote:
> <<why setAttribute(attr,prop) does not default
> to setAttributeNS(CurrentDocNS,attr,prop) ???
> JD>>
>
> Indeed (and the same with createElement). I don't think he was suggesting
> that setAttributeNS() should be removed, but it is silly that there is a
> setAttribute() which we currently can't use! It would make much more sense
> if the setAttribute() and createElement() functions just 'worked' - i.e.
> created things in the default namespace of the document. (I.e., the one
> specified by the xmlns="blaah" in the root node.)
You've just given the reason why this isn't a snap decision.
Should setAttribute()
- create attributes in the default namespace of the document, or
- create attributes in the null namespace?
Any of us could probably argue either way. For our SVG, the second would be a
better choice.
Should createElement()
- create elements in the default namespace of the document, or
- create elements in the null namespace?
Once again, we could probably argue either way. In SVG, the case would be the
better choice.
At this point, your "do the right thing" suggestion will have semantics that
are surprising to at least some of the people using it. Even if we got exactly
what "we" want, the semantics are inconsistent between the two.
Possibly a useful thought on this (and other discussions) is to not assume
that the people who created any standards were idiots. These people put a lot
of thought and effort into the standards.
Trying to understand their reasoning instead of assuming that they were idiots
might make these kinds of discussions a bit less confrontational. There are a
few bits of SVG that I don't particularly like, but when contemplating all
that SVG currently supports, I'm hard pressed to say that I could have done
better.
Later,
G. Wade
--
That's what I love about GUIs: They make simple tasks easier, and complex
tasks impossible.
-- John William Chambless, <[EMAIL PROTECTED]>
------------------------ 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/