<rdar://problem/
3464315>: createDocument creates document with initial child element, unlike other browsers
* khtml/xml/dom_docimpl.cpp:
(DOMImplementationImpl::createDocument): Don;t add initial element.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@5776
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2003-12-11 Maciej Stachowiak <mjs@apple.com>
+
+ Reviewed by Darin.
+
+ <rdar://problem/3464315>: createDocument creates document with initial child element, unlike other browsers
+
+ * khtml/xml/dom_docimpl.cpp:
+ (DOMImplementationImpl::createDocument): Don;t add initial element.
+
2003-12-11 Maciej Stachowiak <mjs@apple.com>
Reviewed by Darin.
if (doc->doctype() && dtype)
doc->doctype()->copyFrom(*dtype);
- ElementImpl *element = doc->createElementNS(namespaceURI,qualifiedName,exceptioncode);
- if (element)
- doc->appendChild(element,exceptioncode);
- if (exceptioncode) {
- delete element;
- delete doc;
- return 0;
- }
-
return doc;
}