"K. Ari Krupnikov" wrote: > > Can someone shed some light on the ownerDocument of nodes created by a > DocumentFragment? > > The Rec says the DocumentFragment interface extends the Document > interface but says little about DocumentFragmnet implementation. > DocumentFragment inherits all createXxx methods of Document. Should its > implementation of these methods be different, or can it delegate them to > Document? Specifically, what should be in the ownerDocument of these > newly created Nodes - the DocumentFragment that created them, or the > DocumentFragment's ownerDocument? > According to the DOM Level 1 spec and the current DOM Level 2 CR, the DocumentFragment does *not* inherit Document, it simply inherits Node. IOW there are no createXXX methods on document fragments. See: http://www.w3.org/TR/REC-DOM-Level-1/level-one-core.html#ID-B63ED1A3 http://www.w3.org/TR/DOM-Level-2/core.html#ID-B63ED1A3 > -- > K. Ari Krupnikov > > DBDOM - bridging XML and relational databases > http://www.iter.co.il -- jstReceived on Tuesday, 4 July 2000 08:56:49 GMT
This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT