>What was the rationale behind having the createAttribute() factory >method in Document instead of Element? Weak rationalle: An Attr, like most other nodes, is always associated with an owning document. It isn't associated with an Element until it's bound to one via setAttributeNode[NS]. > wouldn't it make more sense to have the factory method in Element? There is one: the setAttribute() call. More convenient if the Attr's value will be a single Text node, less convenient if it will be more complicated. ______________________________________ Joe Kesselman / IBM ResearchReceived on Thursday, 30 March 2000 10:11:10 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 October 2009 08:24:51 GMT