[SCM] WebKit Debian packaging branch, debian/unstable, updated. debian/1.1.15-1-40151-g37bb677

rjw rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Sat Sep 26 06:47:48 UTC 2009


The following commit has been merged in the debian/unstable branch:
commit ff90f422206e94fcb2e12b9e3ba1fbc57703415d
Author: rjw <rjw at 268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Date:   Tue Oct 8 21:16:40 2002 +0000

            Fixes to the DOM API.
    
            * DOM.subproj/WebDOMDocument.h:
            * DOM.subproj/WebDOMDocument.m:
            * DOM.subproj/WebDOMNode.h:
            * DOM.subproj/WebDOMNode.m:
            * DOM.subproj/WebDOMNamedNodeMap.h: Removed.
            * DOM.subproj/WebDOMNamedNodeMap.m: Removed.
            * WebKit.pbproj/project.pbxproj:
    
    
            First cut at ObjC stubs for DOM API.  Finished the
            main classes.  Need to finish
            WebDOMElement, WebDOMElement, WebDOMElement,
            WebDOMCDATASection, WebDOMText, WebDOMComment,
            WebDOMCharacterData and
    
            * WebCore.pbproj/project.pbxproj:
            * khtml/dom/dom_doc.h:
            * khtml/dom/dom_element.h:
            * khtml/dom/dom_node.h:
            * khtml/xml/dom_docimpl.h:
            * khtml/xml/dom_elementimpl.h:
            * khtml/xml/dom_nodeimpl.h:
            * kwq/WebCoreDOM.h: Added.
            * kwq/WebCoreDOMDocument.mm: Added.
            (DOM::DOMImplementationImpl::createInstance):
            (DOM::DocumentTypeImpl::createInstance):
            (DOM::DocumentImpl::createInstance):
            (domStringToNSString):
            (NSStringToDOMString):
            (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
            (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
            (-[WebCoreDOMDocumentType dealloc]):
            (-[WebCoreDOMDocumentType DOM::]):
            (-[WebCoreDOMDocumentType name]):
            (-[WebCoreDOMDocumentType entities]):
            (-[WebCoreDOMDocumentType notations]):
            (-[WebCoreDOMDocumentType publicId]):
            (-[WebCoreDOMDocumentType systemId]):
            (-[WebCoreDOMDocumentType internalSubset]):
            (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
            (-[WebCoreDOMImplementation initWithImpl:DOM::]):
            (-[WebCoreDOMImplementation dealloc]):
            (-[WebCoreDOMImplementation DOM::]):
            (-[WebCoreDOMImplementation hasFeature::]):
            (-[WebCoreDOMImplementation createDocument:::]):
            (+[WebCoreDOMDocument documentWithImpl:DOM::]):
            (-[WebCoreDOMDocument initWithImpl:DOM::]):
            (-[WebCoreDOMDocument dealloc]):
            (-[WebCoreDOMDocument DOM::]):
            (-[WebCoreDOMDocument doctype]):
            (-[WebCoreDOMDocument implementation]):
            (-[WebCoreDOMDocument documentElement]):
            (-[WebCoreDOMDocument createElement:]):
            (-[WebCoreDOMDocument createElementNS::]):
            (-[WebCoreDOMDocument createDocumentFragment]):
            (-[WebCoreDOMDocument createTextNode:]):
            (-[WebCoreDOMDocument createComment:]):
            (-[WebCoreDOMDocument createCDATASection:]):
            (-[WebCoreDOMDocument createProcessingInstruction::]):
            (-[WebCoreDOMDocument createAttribute:]):
            (-[WebCoreDOMDocument createAttributeNS::]):
            (-[WebCoreDOMDocument createEntityReference:]):
            (-[WebCoreDOMDocument getElementById:]):
            (-[WebCoreDOMDocument getElementsByTagName:]):
            (-[WebCoreDOMDocument getElementsByTagNameNS::]):
            (-[WebCoreDOMDocument importNode::]):
            * kwq/WebCoreDOMNode.mm: Added.
            (DOM::NamedNodeMapImpl::createInstance):
            (DOM::AttrImpl::createInstance):
            (+[WebCoreDOMNode nodeWithImpl:DOM::]):
            (-[WebCoreDOMNode initWithImpl:DOM::]):
            (-[WebCoreDOMNode DOM::]):
            (-[WebCoreDOMNode dealloc]):
            (-[WebCoreDOMNode nodeName]):
            (-[WebCoreDOMNode nodeValue]):
            (-[WebCoreDOMNode setNodeValue:]):
            (-[WebCoreDOMNode nodeType]):
            (-[WebCoreDOMNode parentNode]):
            (-[WebCoreDOMNode firstChild]):
            (-[WebCoreDOMNode lastChild]):
            (-[WebCoreDOMNode previousSibling]):
            (-[WebCoreDOMNode nextSibling]):
            (-[WebCoreDOMNode ownerDocument]):
            (-[WebCoreDOMNode insert:before:]):
            (-[WebCoreDOMNode replace:child:]):
            (-[WebCoreDOMNode removeChild:]):
            (-[WebCoreDOMNode hasChildNodes]):
            (-[WebCoreDOMNode cloneNode:]):
            (-[WebCoreDOMNode normalize]):
            (-[WebCoreDOMNode isSupported::]):
            (-[WebCoreDOMNode namespaceURI]):
            (-[WebCoreDOMNode prefix]):
            (-[WebCoreDOMNode setPrefix:]):
            (-[WebCoreDOMNode localName]):
            (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
            (-[WebCoreDOMNodeList initWithImpl:DOM::]):
            (-[WebCoreDOMNodeList DOM::]):
            (-[WebCoreDOMNodeList dealloc]):
            (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
            (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
            (-[WebCoreDOMNamedNodeMap DOM::]):
            (-[WebCoreDOMNamedNodeMap dealloc]):
            (-[WebCoreDOMNamedNodeMap length]):
            (-[WebCoreDOMNamedNodeMap getNamedItem:]):
            (-[WebCoreDOMNamedNodeMap setNamedItem:]):
            (+[WebCoreDOMAttr attrWithImpl:DOM::]):
            (-[WebCoreDOMAttr initWithImpl:DOM::]):
            (-[WebCoreDOMAttr DOM::]):
            (-[WebCoreDOMAttr dealloc]):
            (-[WebCoreDOMAttr name]):
            (-[WebCoreDOMAttr specified]):
            (-[WebCoreDOMAttr value]):
            (-[WebCoreDOMAttr ownerElement]):
            (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
            (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
            (-[WebCoreDOMCDATASection DOM::]):
            (-[WebCoreDOMCDATASection dealloc]):
            * kwq/WebCoreDOMPrivate.h: Added.
            * kwq/WebDOMDocument.h: Added.
            * kwq/WebDOMElement.h: Added.
            * kwq/WebDOMNode.h: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@2277 268f45cc-cd09-0410-ab3c-d52691b4dbfc

diff --git a/WebCore/ChangeLog-2002-12-03 b/WebCore/ChangeLog-2002-12-03
index 26a6e2b..a5a8fba 100644
--- a/WebCore/ChangeLog-2002-12-03
+++ b/WebCore/ChangeLog-2002-12-03
@@ -1,3 +1,118 @@
+2002-10-08  Richard Williamson   <rjw at apple.com>
+
+        First cut at ObjC stubs for DOM API.  Finished the
+        main classes.  Need to finish
+        WebDOMElement, WebDOMElement, WebDOMElement, 
+        WebDOMCDATASection, WebDOMText, WebDOMComment,
+        WebDOMCharacterData and 
+        
+        * WebCore.pbproj/project.pbxproj:
+        * khtml/dom/dom_doc.h:
+        * khtml/dom/dom_element.h:
+        * khtml/dom/dom_node.h:
+        * khtml/xml/dom_docimpl.h:
+        * khtml/xml/dom_elementimpl.h:
+        * khtml/xml/dom_nodeimpl.h:
+        * kwq/WebCoreDOM.h: Added.
+        * kwq/WebCoreDOMDocument.mm: Added.
+        (DOM::DOMImplementationImpl::createInstance):
+        (DOM::DocumentTypeImpl::createInstance):
+        (DOM::DocumentImpl::createInstance):
+        (domStringToNSString):
+        (NSStringToDOMString):
+        (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
+        (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
+        (-[WebCoreDOMDocumentType dealloc]):
+        (-[WebCoreDOMDocumentType DOM::]):
+        (-[WebCoreDOMDocumentType name]):
+        (-[WebCoreDOMDocumentType entities]):
+        (-[WebCoreDOMDocumentType notations]):
+        (-[WebCoreDOMDocumentType publicId]):
+        (-[WebCoreDOMDocumentType systemId]):
+        (-[WebCoreDOMDocumentType internalSubset]):
+        (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
+        (-[WebCoreDOMImplementation initWithImpl:DOM::]):
+        (-[WebCoreDOMImplementation dealloc]):
+        (-[WebCoreDOMImplementation DOM::]):
+        (-[WebCoreDOMImplementation hasFeature::]):
+        (-[WebCoreDOMImplementation createDocument:::]):
+        (+[WebCoreDOMDocument documentWithImpl:DOM::]):
+        (-[WebCoreDOMDocument initWithImpl:DOM::]):
+        (-[WebCoreDOMDocument dealloc]):
+        (-[WebCoreDOMDocument DOM::]):
+        (-[WebCoreDOMDocument doctype]):
+        (-[WebCoreDOMDocument implementation]):
+        (-[WebCoreDOMDocument documentElement]):
+        (-[WebCoreDOMDocument createElement:]):
+        (-[WebCoreDOMDocument createElementNS::]):
+        (-[WebCoreDOMDocument createDocumentFragment]):
+        (-[WebCoreDOMDocument createTextNode:]):
+        (-[WebCoreDOMDocument createComment:]):
+        (-[WebCoreDOMDocument createCDATASection:]):
+        (-[WebCoreDOMDocument createProcessingInstruction::]):
+        (-[WebCoreDOMDocument createAttribute:]):
+        (-[WebCoreDOMDocument createAttributeNS::]):
+        (-[WebCoreDOMDocument createEntityReference:]):
+        (-[WebCoreDOMDocument getElementById:]):
+        (-[WebCoreDOMDocument getElementsByTagName:]):
+        (-[WebCoreDOMDocument getElementsByTagNameNS::]):
+        (-[WebCoreDOMDocument importNode::]):
+        * kwq/WebCoreDOMNode.mm: Added.
+        (DOM::NamedNodeMapImpl::createInstance):
+        (DOM::AttrImpl::createInstance):
+        (+[WebCoreDOMNode nodeWithImpl:DOM::]):
+        (-[WebCoreDOMNode initWithImpl:DOM::]):
+        (-[WebCoreDOMNode DOM::]):
+        (-[WebCoreDOMNode dealloc]):
+        (-[WebCoreDOMNode nodeName]):
+        (-[WebCoreDOMNode nodeValue]):
+        (-[WebCoreDOMNode setNodeValue:]):
+        (-[WebCoreDOMNode nodeType]):
+        (-[WebCoreDOMNode parentNode]):
+        (-[WebCoreDOMNode firstChild]):
+        (-[WebCoreDOMNode lastChild]):
+        (-[WebCoreDOMNode previousSibling]):
+        (-[WebCoreDOMNode nextSibling]):
+        (-[WebCoreDOMNode ownerDocument]):
+        (-[WebCoreDOMNode insert:before:]):
+        (-[WebCoreDOMNode replace:child:]):
+        (-[WebCoreDOMNode removeChild:]):
+        (-[WebCoreDOMNode hasChildNodes]):
+        (-[WebCoreDOMNode cloneNode:]):
+        (-[WebCoreDOMNode normalize]):
+        (-[WebCoreDOMNode isSupported::]):
+        (-[WebCoreDOMNode namespaceURI]):
+        (-[WebCoreDOMNode prefix]):
+        (-[WebCoreDOMNode setPrefix:]):
+        (-[WebCoreDOMNode localName]):
+        (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
+        (-[WebCoreDOMNodeList initWithImpl:DOM::]):
+        (-[WebCoreDOMNodeList DOM::]):
+        (-[WebCoreDOMNodeList dealloc]):
+        (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
+        (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
+        (-[WebCoreDOMNamedNodeMap DOM::]):
+        (-[WebCoreDOMNamedNodeMap dealloc]):
+        (-[WebCoreDOMNamedNodeMap length]):
+        (-[WebCoreDOMNamedNodeMap getNamedItem:]):
+        (-[WebCoreDOMNamedNodeMap setNamedItem:]):
+        (+[WebCoreDOMAttr attrWithImpl:DOM::]):
+        (-[WebCoreDOMAttr initWithImpl:DOM::]):
+        (-[WebCoreDOMAttr DOM::]):
+        (-[WebCoreDOMAttr dealloc]):
+        (-[WebCoreDOMAttr name]):
+        (-[WebCoreDOMAttr specified]):
+        (-[WebCoreDOMAttr value]):
+        (-[WebCoreDOMAttr ownerElement]):
+        (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
+        (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
+        (-[WebCoreDOMCDATASection DOM::]):
+        (-[WebCoreDOMCDATASection dealloc]):
+        * kwq/WebCoreDOMPrivate.h: Added.
+        * kwq/WebDOMDocument.h: Added.
+        * kwq/WebDOMElement.h: Added.
+        * kwq/WebDOMNode.h: Added.
+
 2002-10-09  David Hyatt  <hyatt at apple.com>
 
 	Fix a bug in my event handling code for layers.   This makes
@@ -46,7 +161,7 @@
 2002-10-07  Richard Williamson   <rjw at apple.com>
 
         Added response to WebCore's CachedObject.  This allows us to correctly
-        emulated the WebResourceLoadDelegate API when 're'loading an item
+        emulate the WebResourceLoadDelegate API when 're'loading an item
         from the WebCore cache.  
         
         * khtml/misc/loader.cpp:
diff --git a/WebCore/ChangeLog-2003-10-25 b/WebCore/ChangeLog-2003-10-25
index 26a6e2b..a5a8fba 100644
--- a/WebCore/ChangeLog-2003-10-25
+++ b/WebCore/ChangeLog-2003-10-25
@@ -1,3 +1,118 @@
+2002-10-08  Richard Williamson   <rjw at apple.com>
+
+        First cut at ObjC stubs for DOM API.  Finished the
+        main classes.  Need to finish
+        WebDOMElement, WebDOMElement, WebDOMElement, 
+        WebDOMCDATASection, WebDOMText, WebDOMComment,
+        WebDOMCharacterData and 
+        
+        * WebCore.pbproj/project.pbxproj:
+        * khtml/dom/dom_doc.h:
+        * khtml/dom/dom_element.h:
+        * khtml/dom/dom_node.h:
+        * khtml/xml/dom_docimpl.h:
+        * khtml/xml/dom_elementimpl.h:
+        * khtml/xml/dom_nodeimpl.h:
+        * kwq/WebCoreDOM.h: Added.
+        * kwq/WebCoreDOMDocument.mm: Added.
+        (DOM::DOMImplementationImpl::createInstance):
+        (DOM::DocumentTypeImpl::createInstance):
+        (DOM::DocumentImpl::createInstance):
+        (domStringToNSString):
+        (NSStringToDOMString):
+        (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
+        (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
+        (-[WebCoreDOMDocumentType dealloc]):
+        (-[WebCoreDOMDocumentType DOM::]):
+        (-[WebCoreDOMDocumentType name]):
+        (-[WebCoreDOMDocumentType entities]):
+        (-[WebCoreDOMDocumentType notations]):
+        (-[WebCoreDOMDocumentType publicId]):
+        (-[WebCoreDOMDocumentType systemId]):
+        (-[WebCoreDOMDocumentType internalSubset]):
+        (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
+        (-[WebCoreDOMImplementation initWithImpl:DOM::]):
+        (-[WebCoreDOMImplementation dealloc]):
+        (-[WebCoreDOMImplementation DOM::]):
+        (-[WebCoreDOMImplementation hasFeature::]):
+        (-[WebCoreDOMImplementation createDocument:::]):
+        (+[WebCoreDOMDocument documentWithImpl:DOM::]):
+        (-[WebCoreDOMDocument initWithImpl:DOM::]):
+        (-[WebCoreDOMDocument dealloc]):
+        (-[WebCoreDOMDocument DOM::]):
+        (-[WebCoreDOMDocument doctype]):
+        (-[WebCoreDOMDocument implementation]):
+        (-[WebCoreDOMDocument documentElement]):
+        (-[WebCoreDOMDocument createElement:]):
+        (-[WebCoreDOMDocument createElementNS::]):
+        (-[WebCoreDOMDocument createDocumentFragment]):
+        (-[WebCoreDOMDocument createTextNode:]):
+        (-[WebCoreDOMDocument createComment:]):
+        (-[WebCoreDOMDocument createCDATASection:]):
+        (-[WebCoreDOMDocument createProcessingInstruction::]):
+        (-[WebCoreDOMDocument createAttribute:]):
+        (-[WebCoreDOMDocument createAttributeNS::]):
+        (-[WebCoreDOMDocument createEntityReference:]):
+        (-[WebCoreDOMDocument getElementById:]):
+        (-[WebCoreDOMDocument getElementsByTagName:]):
+        (-[WebCoreDOMDocument getElementsByTagNameNS::]):
+        (-[WebCoreDOMDocument importNode::]):
+        * kwq/WebCoreDOMNode.mm: Added.
+        (DOM::NamedNodeMapImpl::createInstance):
+        (DOM::AttrImpl::createInstance):
+        (+[WebCoreDOMNode nodeWithImpl:DOM::]):
+        (-[WebCoreDOMNode initWithImpl:DOM::]):
+        (-[WebCoreDOMNode DOM::]):
+        (-[WebCoreDOMNode dealloc]):
+        (-[WebCoreDOMNode nodeName]):
+        (-[WebCoreDOMNode nodeValue]):
+        (-[WebCoreDOMNode setNodeValue:]):
+        (-[WebCoreDOMNode nodeType]):
+        (-[WebCoreDOMNode parentNode]):
+        (-[WebCoreDOMNode firstChild]):
+        (-[WebCoreDOMNode lastChild]):
+        (-[WebCoreDOMNode previousSibling]):
+        (-[WebCoreDOMNode nextSibling]):
+        (-[WebCoreDOMNode ownerDocument]):
+        (-[WebCoreDOMNode insert:before:]):
+        (-[WebCoreDOMNode replace:child:]):
+        (-[WebCoreDOMNode removeChild:]):
+        (-[WebCoreDOMNode hasChildNodes]):
+        (-[WebCoreDOMNode cloneNode:]):
+        (-[WebCoreDOMNode normalize]):
+        (-[WebCoreDOMNode isSupported::]):
+        (-[WebCoreDOMNode namespaceURI]):
+        (-[WebCoreDOMNode prefix]):
+        (-[WebCoreDOMNode setPrefix:]):
+        (-[WebCoreDOMNode localName]):
+        (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
+        (-[WebCoreDOMNodeList initWithImpl:DOM::]):
+        (-[WebCoreDOMNodeList DOM::]):
+        (-[WebCoreDOMNodeList dealloc]):
+        (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
+        (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
+        (-[WebCoreDOMNamedNodeMap DOM::]):
+        (-[WebCoreDOMNamedNodeMap dealloc]):
+        (-[WebCoreDOMNamedNodeMap length]):
+        (-[WebCoreDOMNamedNodeMap getNamedItem:]):
+        (-[WebCoreDOMNamedNodeMap setNamedItem:]):
+        (+[WebCoreDOMAttr attrWithImpl:DOM::]):
+        (-[WebCoreDOMAttr initWithImpl:DOM::]):
+        (-[WebCoreDOMAttr DOM::]):
+        (-[WebCoreDOMAttr dealloc]):
+        (-[WebCoreDOMAttr name]):
+        (-[WebCoreDOMAttr specified]):
+        (-[WebCoreDOMAttr value]):
+        (-[WebCoreDOMAttr ownerElement]):
+        (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
+        (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
+        (-[WebCoreDOMCDATASection DOM::]):
+        (-[WebCoreDOMCDATASection dealloc]):
+        * kwq/WebCoreDOMPrivate.h: Added.
+        * kwq/WebDOMDocument.h: Added.
+        * kwq/WebDOMElement.h: Added.
+        * kwq/WebDOMNode.h: Added.
+
 2002-10-09  David Hyatt  <hyatt at apple.com>
 
 	Fix a bug in my event handling code for layers.   This makes
@@ -46,7 +161,7 @@
 2002-10-07  Richard Williamson   <rjw at apple.com>
 
         Added response to WebCore's CachedObject.  This allows us to correctly
-        emulated the WebResourceLoadDelegate API when 're'loading an item
+        emulate the WebResourceLoadDelegate API when 're'loading an item
         from the WebCore cache.  
         
         * khtml/misc/loader.cpp:
diff --git a/WebCore/ChangeLog-2005-08-23 b/WebCore/ChangeLog-2005-08-23
index 26a6e2b..a5a8fba 100644
--- a/WebCore/ChangeLog-2005-08-23
+++ b/WebCore/ChangeLog-2005-08-23
@@ -1,3 +1,118 @@
+2002-10-08  Richard Williamson   <rjw at apple.com>
+
+        First cut at ObjC stubs for DOM API.  Finished the
+        main classes.  Need to finish
+        WebDOMElement, WebDOMElement, WebDOMElement, 
+        WebDOMCDATASection, WebDOMText, WebDOMComment,
+        WebDOMCharacterData and 
+        
+        * WebCore.pbproj/project.pbxproj:
+        * khtml/dom/dom_doc.h:
+        * khtml/dom/dom_element.h:
+        * khtml/dom/dom_node.h:
+        * khtml/xml/dom_docimpl.h:
+        * khtml/xml/dom_elementimpl.h:
+        * khtml/xml/dom_nodeimpl.h:
+        * kwq/WebCoreDOM.h: Added.
+        * kwq/WebCoreDOMDocument.mm: Added.
+        (DOM::DOMImplementationImpl::createInstance):
+        (DOM::DocumentTypeImpl::createInstance):
+        (DOM::DocumentImpl::createInstance):
+        (domStringToNSString):
+        (NSStringToDOMString):
+        (+[WebCoreDOMDocumentType documentTypeWithImpl:DOM::]):
+        (-[WebCoreDOMDocumentType initWithImpl:DOM::]):
+        (-[WebCoreDOMDocumentType dealloc]):
+        (-[WebCoreDOMDocumentType DOM::]):
+        (-[WebCoreDOMDocumentType name]):
+        (-[WebCoreDOMDocumentType entities]):
+        (-[WebCoreDOMDocumentType notations]):
+        (-[WebCoreDOMDocumentType publicId]):
+        (-[WebCoreDOMDocumentType systemId]):
+        (-[WebCoreDOMDocumentType internalSubset]):
+        (+[WebCoreDOMImplementation implementionatWithImpl:DOM::]):
+        (-[WebCoreDOMImplementation initWithImpl:DOM::]):
+        (-[WebCoreDOMImplementation dealloc]):
+        (-[WebCoreDOMImplementation DOM::]):
+        (-[WebCoreDOMImplementation hasFeature::]):
+        (-[WebCoreDOMImplementation createDocument:::]):
+        (+[WebCoreDOMDocument documentWithImpl:DOM::]):
+        (-[WebCoreDOMDocument initWithImpl:DOM::]):
+        (-[WebCoreDOMDocument dealloc]):
+        (-[WebCoreDOMDocument DOM::]):
+        (-[WebCoreDOMDocument doctype]):
+        (-[WebCoreDOMDocument implementation]):
+        (-[WebCoreDOMDocument documentElement]):
+        (-[WebCoreDOMDocument createElement:]):
+        (-[WebCoreDOMDocument createElementNS::]):
+        (-[WebCoreDOMDocument createDocumentFragment]):
+        (-[WebCoreDOMDocument createTextNode:]):
+        (-[WebCoreDOMDocument createComment:]):
+        (-[WebCoreDOMDocument createCDATASection:]):
+        (-[WebCoreDOMDocument createProcessingInstruction::]):
+        (-[WebCoreDOMDocument createAttribute:]):
+        (-[WebCoreDOMDocument createAttributeNS::]):
+        (-[WebCoreDOMDocument createEntityReference:]):
+        (-[WebCoreDOMDocument getElementById:]):
+        (-[WebCoreDOMDocument getElementsByTagName:]):
+        (-[WebCoreDOMDocument getElementsByTagNameNS::]):
+        (-[WebCoreDOMDocument importNode::]):
+        * kwq/WebCoreDOMNode.mm: Added.
+        (DOM::NamedNodeMapImpl::createInstance):
+        (DOM::AttrImpl::createInstance):
+        (+[WebCoreDOMNode nodeWithImpl:DOM::]):
+        (-[WebCoreDOMNode initWithImpl:DOM::]):
+        (-[WebCoreDOMNode DOM::]):
+        (-[WebCoreDOMNode dealloc]):
+        (-[WebCoreDOMNode nodeName]):
+        (-[WebCoreDOMNode nodeValue]):
+        (-[WebCoreDOMNode setNodeValue:]):
+        (-[WebCoreDOMNode nodeType]):
+        (-[WebCoreDOMNode parentNode]):
+        (-[WebCoreDOMNode firstChild]):
+        (-[WebCoreDOMNode lastChild]):
+        (-[WebCoreDOMNode previousSibling]):
+        (-[WebCoreDOMNode nextSibling]):
+        (-[WebCoreDOMNode ownerDocument]):
+        (-[WebCoreDOMNode insert:before:]):
+        (-[WebCoreDOMNode replace:child:]):
+        (-[WebCoreDOMNode removeChild:]):
+        (-[WebCoreDOMNode hasChildNodes]):
+        (-[WebCoreDOMNode cloneNode:]):
+        (-[WebCoreDOMNode normalize]):
+        (-[WebCoreDOMNode isSupported::]):
+        (-[WebCoreDOMNode namespaceURI]):
+        (-[WebCoreDOMNode prefix]):
+        (-[WebCoreDOMNode setPrefix:]):
+        (-[WebCoreDOMNode localName]):
+        (+[WebCoreDOMNodeList nodeListWithImpl:DOM::]):
+        (-[WebCoreDOMNodeList initWithImpl:DOM::]):
+        (-[WebCoreDOMNodeList DOM::]):
+        (-[WebCoreDOMNodeList dealloc]):
+        (+[WebCoreDOMNamedNodeMap namedNodeMapWithImpl:DOM::]):
+        (-[WebCoreDOMNamedNodeMap initWithImpl:DOM::]):
+        (-[WebCoreDOMNamedNodeMap DOM::]):
+        (-[WebCoreDOMNamedNodeMap dealloc]):
+        (-[WebCoreDOMNamedNodeMap length]):
+        (-[WebCoreDOMNamedNodeMap getNamedItem:]):
+        (-[WebCoreDOMNamedNodeMap setNamedItem:]):
+        (+[WebCoreDOMAttr attrWithImpl:DOM::]):
+        (-[WebCoreDOMAttr initWithImpl:DOM::]):
+        (-[WebCoreDOMAttr DOM::]):
+        (-[WebCoreDOMAttr dealloc]):
+        (-[WebCoreDOMAttr name]):
+        (-[WebCoreDOMAttr specified]):
+        (-[WebCoreDOMAttr value]):
+        (-[WebCoreDOMAttr ownerElement]):
+        (+[WebCoreDOMCDATASection CDATASectionWithImpl:DOM::]):
+        (-[WebCoreDOMCDATASection initWithImpl:DOM::]):
+        (-[WebCoreDOMCDATASection DOM::]):
+        (-[WebCoreDOMCDATASection dealloc]):
+        * kwq/WebCoreDOMPrivate.h: Added.
+        * kwq/WebDOMDocument.h: Added.
+        * kwq/WebDOMElement.h: Added.
+        * kwq/WebDOMNode.h: Added.
+
 2002-10-09  David Hyatt  <hyatt at apple.com>
 
 	Fix a bug in my event handling code for layers.   This makes
@@ -46,7 +161,7 @@
 2002-10-07  Richard Williamson   <rjw at apple.com>
 
         Added response to WebCore's CachedObject.  This allows us to correctly
-        emulated the WebResourceLoadDelegate API when 're'loading an item
+        emulate the WebResourceLoadDelegate API when 're'loading an item
         from the WebCore cache.  
         
         * khtml/misc/loader.cpp:
diff --git a/WebCore/WebCore.pbproj/project.pbxproj b/WebCore/WebCore.pbproj/project.pbxproj
index f04cea1..f1217ed 100644
--- a/WebCore/WebCore.pbproj/project.pbxproj
+++ b/WebCore/WebCore.pbproj/project.pbxproj
@@ -72,7 +72,6 @@
 				F58C8A07025BD3BC018635CA,
 				F531DDEC02F0C34D018635CA,
 			);
-			hasScannedForEncodings = 1;
 			isa = PBXProject;
 			knownRegions = (
 				English,
@@ -494,6 +493,12 @@
 				93861DE1032C2E52008635CE,
 				93CCF7D6033BD43C008635CE,
 				93CCF7E3033BE9C1008635CE,
+				F565A2740352509B01A80180,
+				F565A27D035284E301A80180,
+				F5EDAAF7035345D901A80180,
+				F5EDAAF8035345D901A80180,
+				F5EDAAF9035345D901A80180,
+				F5EDAAFA035345D901A80180,
 			);
 			isa = PBXHeadersBuildPhase;
 			runOnlyForDeploymentPostprocessing = 0;
@@ -724,6 +729,8 @@
 				9377FB58032C235C008635CE,
 				93861DE2032C2E52008635CE,
 				93CCF7D7033BD43C008635CE,
+				F565A2780352643A01A80180,
+				F565A27B0352675C01A80180,
 			);
 			isa = PBXSourcesBuildPhase;
 			runOnlyForDeploymentPostprocessing = 0;
@@ -4087,6 +4094,69 @@
 			settings = {
 			};
 		};
+		F565A2700352410501A80180 = {
+			children = (
+				F565A2730352509B01A80180,
+				F565A2770352643A01A80180,
+				F565A27A0352675C01A80180,
+				F565A27C035284E301A80180,
+				F5EDAAF3035345D901A80180,
+				F5EDAAF4035345D901A80180,
+				F5EDAAF5035345D901A80180,
+				F5EDAAF6035345D901A80180,
+			);
+			isa = PBXGroup;
+			name = DOM;
+			refType = 4;
+		};
+		F565A2730352509B01A80180 = {
+			isa = PBXFileReference;
+			path = WebCoreDOM.h;
+			refType = 4;
+		};
+		F565A2740352509B01A80180 = {
+			fileRef = F565A2730352509B01A80180;
+			isa = PBXBuildFile;
+			settings = {
+				ATTRIBUTES = (
+					Private,
+				);
+			};
+		};
+		F565A2770352643A01A80180 = {
+			isa = PBXFileReference;
+			name = WebCoreDOMDocument.mm;
+			path = kwq/WebCoreDOMDocument.mm;
+			refType = 2;
+		};
+		F565A2780352643A01A80180 = {
+			fileRef = F565A2770352643A01A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F565A27A0352675C01A80180 = {
+			isa = PBXFileReference;
+			path = WebCoreDOMNode.mm;
+			refType = 4;
+		};
+		F565A27B0352675C01A80180 = {
+			fileRef = F565A27A0352675C01A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F565A27C035284E301A80180 = {
+			isa = PBXFileReference;
+			path = WebCoreDOMPrivate.h;
+			refType = 4;
+		};
+		F565A27D035284E301A80180 = {
+			fileRef = F565A27C035284E301A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
 		F565AE8502ECA583018635CA = {
 			fileEncoding = 30;
 			isa = PBXFileReference;
@@ -5792,6 +5862,7 @@
 		};
 		F58785E802DE377601EA4122 = {
 			children = (
+				F565A2700352410501A80180,
 				F587871802DE3B8801EA4122,
 				F587861C02DE382201EA4122,
 				F587862F02DE398601EA4122,
@@ -8137,6 +8208,54 @@
 			settings = {
 			};
 		};
+		F5EDAAF3035345D901A80180 = {
+			isa = PBXFileReference;
+			name = WebDOMDocument.h;
+			path = kwq/WebDOMDocument.h;
+			refType = 2;
+		};
+		F5EDAAF4035345D901A80180 = {
+			isa = PBXFileReference;
+			name = WebDOMElement.h;
+			path = kwq/WebDOMElement.h;
+			refType = 2;
+		};
+		F5EDAAF5035345D901A80180 = {
+			isa = PBXFileReference;
+			name = WebDOMNamedNodeMap.h;
+			path = kwq/WebDOMNamedNodeMap.h;
+			refType = 2;
+		};
+		F5EDAAF6035345D901A80180 = {
+			isa = PBXFileReference;
+			name = WebDOMNode.h;
+			path = kwq/WebDOMNode.h;
+			refType = 2;
+		};
+		F5EDAAF7035345D901A80180 = {
+			fileRef = F5EDAAF3035345D901A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F5EDAAF8035345D901A80180 = {
+			fileRef = F5EDAAF4035345D901A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F5EDAAF9035345D901A80180 = {
+			fileRef = F5EDAAF5035345D901A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
+		F5EDAAFA035345D901A80180 = {
+			fileRef = F5EDAAF6035345D901A80180;
+			isa = PBXBuildFile;
+			settings = {
+			};
+		};
 //F50
 //F51
 //F52
diff --git a/WebCore/khtml/dom/dom_doc.h b/WebCore/khtml/dom/dom_doc.h
index 1407527..243747c 100644
--- a/WebCore/khtml/dom/dom_doc.h
+++ b/WebCore/khtml/dom/dom_doc.h
@@ -75,6 +75,10 @@ class HTMLDocument;
 class DOMImplementation
 {
    friend class Document;
+#ifdef APPLE_CHANGES
+    friend class DOMImplementationImpl;
+#endif
+
 public:
     DOMImplementation();
     DOMImplementation(const DOMImplementation &other);
@@ -249,6 +253,9 @@ class Document : public Node
     friend class HTMLFrameElement;
     friend class HTMLIFrameElement;
     friend class HTMLObjectElement;
+#ifdef APPLE_CHANGES
+    friend class DocumentImpl;
+#endif
 
 public:
     Document();
@@ -869,6 +876,10 @@ class DocumentType : public Node
 {
     friend class Document;
     friend class DOMImplementation;
+#ifdef APPLE_CHANGES
+    friend class DocumentTypeImpl;
+#endif
+
 public:
     DocumentType();
     DocumentType(const DocumentType &other);
diff --git a/WebCore/khtml/dom/dom_element.h b/WebCore/khtml/dom/dom_element.h
index 5c69d6b..d0a3c50 100644
--- a/WebCore/khtml/dom/dom_element.h
+++ b/WebCore/khtml/dom/dom_element.h
@@ -92,6 +92,9 @@ class Attr : public Node
     friend class HTMLDocument;
     friend class ElementImpl;
     friend class NamedAttrMapImpl;
+#ifdef APPLE_CHANGES
+    friend class AttrImpl;
+#endif
 
 public:
     Attr();
diff --git a/WebCore/khtml/dom/dom_node.h b/WebCore/khtml/dom/dom_node.h
index 91135e5..90a4a4f 100644
--- a/WebCore/khtml/dom/dom_node.h
+++ b/WebCore/khtml/dom/dom_node.h
@@ -231,6 +231,9 @@ protected:
     friend class Node;
     friend class DocumentType;
     friend class NodeImpl;
+#ifdef APPLE_CHANGES
+    friend class NamedNodeMapImpl;
+#endif
 };
 
 class NamedNodeMap;
diff --git a/WebCore/khtml/xml/dom_docimpl.h b/WebCore/khtml/xml/dom_docimpl.h
index e17acc6..d9d150d 100644
--- a/WebCore/khtml/xml/dom_docimpl.h
+++ b/WebCore/khtml/xml/dom_docimpl.h
@@ -62,6 +62,9 @@ namespace DOM {
     class DocumentImpl;
     class DocumentType;
     class DocumentTypeImpl;
+#ifdef APPLE_CHANGES
+    class DOMImplementation;
+#endif
     class ElementImpl;
     class EntityReferenceImpl;
     class EventImpl;
@@ -110,6 +113,10 @@ public:
     // ever be present, and is used as a factory method for creating DocumentImpl objects
     static DOMImplementationImpl *instance();
 
+#ifdef APPLE_CHANGES
+    static DOMImplementation createInstance (DOMImplementationImpl *impl);
+#endif
+
 protected:
     static DOMImplementationImpl *m_instance;
 };
@@ -400,6 +407,8 @@ signals:
 #if APPLE_CHANGES
 public:
     KWQSignal m_finishedParsing;
+
+    static Document createInstance (DocumentImpl *impl);
 #endif
 
 protected:
@@ -516,6 +525,10 @@ public:
     DOMImplementationImpl *implementation() const { return m_implementation; }
     void copyFrom(const DocumentTypeImpl&);
 
+#ifdef APPLE_CHANGES
+    static DocumentType createInstance (DocumentTypeImpl *impl);
+#endif
+
 protected:
     DOMImplementationImpl *m_implementation;
     NamedNodeMapImpl* m_entities;
diff --git a/WebCore/khtml/xml/dom_elementimpl.h b/WebCore/khtml/xml/dom_elementimpl.h
index 2d566ee..8a3986c 100644
--- a/WebCore/khtml/xml/dom_elementimpl.h
+++ b/WebCore/khtml/xml/dom_elementimpl.h
@@ -137,6 +137,10 @@ public:
     virtual bool childAllowed( NodeImpl *newChild );
     virtual bool childTypeAllowed( unsigned short type );
 
+#ifdef APPLE_CHANGES
+    static Attr createInstance(AttrImpl *impl);
+#endif
+
 protected:
     ElementImpl* m_element;
     AttributeImpl* m_attribute;
diff --git a/WebCore/khtml/xml/dom_nodeimpl.h b/WebCore/khtml/xml/dom_nodeimpl.h
index b68fb48..6867e22 100644
--- a/WebCore/khtml/xml/dom_nodeimpl.h
+++ b/WebCore/khtml/xml/dom_nodeimpl.h
@@ -353,6 +353,10 @@ public:
      */
     virtual void childrenChanged();
 
+#ifdef APPLE_CHANGES
+    static Node nodeInstance(NodeImpl *impl);
+#endif
+
 private: // members
     DocumentPtr *document;
     NodeImpl *m_previous;
@@ -550,6 +554,10 @@ public:
     // Other methods (not part of DOM)
     virtual NodeImpl::Id mapId(const DOMString& namespaceURI,  const DOMString& localName,  bool readonly) = 0;
     virtual bool isReadOnly() { return false; }
+
+#ifdef APPLE_CHANGES
+    static NamedNodeMap createInstance(NamedNodeMapImpl *impl);
+#endif
 };
 
 
diff --git a/WebCore/kwq/WebCoreDOM.h b/WebCore/kwq/WebCoreDOM.h
new file mode 100644
index 0000000..34a49cc
--- /dev/null
+++ b/WebCore/kwq/WebCoreDOM.h
@@ -0,0 +1,99 @@
+/*	
+    WebCoreDOM.h
+    Copyright 2002, Apple, Inc. All rights reserved.
+*/
+#import <Foundation/Foundation.h>
+
+#ifdef __cplusplus
+
+namespace DOM {
+    class DOMImplementationImpl;
+    class NodeImpl;
+    class NodeListImpl;
+    class NamedNodeMapImpl;
+}
+
+typedef DOM::DOMImplementationImpl DOMImplementationImpl;
+typedef DOM::NodeImpl NodeImpl;
+typedef DOM::NodeListImpl NodeListImpl;
+typedef DOM::NamedNodeMapImpl NamedNodeMapImpl;
+
+#else
+
+ at class DOMImplementationImpl;
+ at class NodeImpl;
+ at class NodeListImpl;
+ at class NamedNodeMapImpl;
+
+#endif
+
+ at protocol WebDOMNode;
+ at protocol WebDOMNamedNodeMap;
+ at protocol WebDOMNodeList;
+ at protocol WebDOMImplementation;
+ at protocol WebDOMDocumentType;
+ at protocol WebDOMDocument;
+ at protocol WebDOMEntityReference;
+ at protocol WebDOMElement;
+ at protocol WebDOMAttr;
+ at protocol WebDOMDocumentFragment;
+ at protocol WebDOMText;
+ at protocol WebDOMComment;
+ at protocol WebDOMCDATASection;
+ at protocol WebDOMProcessingInstruction;
+
+ at interface WebCoreDOMNode : NSObject <WebDOMNode>
+{
+    NodeImpl *impl;
+}
+ at end
+
+ at interface WebCoreDOMNamedNodeMap : NSObject <WebDOMNamedNodeMap>
+{
+    NamedNodeMapImpl *impl;
+}
+ at end
+
+ at interface WebCoreDOMNodeList : NSObject <WebDOMNodeList>
+{
+    NodeListImpl *impl;
+}
+ at end
+
+ at interface WebCoreDOMImplementation : NSObject <WebDOMImplementation>
+{
+    DOMImplementationImpl *impl;
+}
+ at end
+
+ at interface WebCoreDOMDocumentType : WebCoreDOMNode <WebDOMDocumentType>
+ at end
+
+ at interface WebCoreDOMDocument : WebCoreDOMNode <WebDOMDocument>
+ at end
+
+ at interface WebCoreDOMEntityReference : WebCoreDOMNode <WebDOMEntityReference>
+ at end
+
+ at interface WebCoreDOMElement : WebCoreDOMNode <WebDOMElement>
+ at end
+
+ at interface WebCoreDOMAttr : WebCoreDOMNode <WebDOMAttr> 
+ at end
+
+ at interface WebCoreDOMDocumentFragment : WebCoreDOMNode <WebDOMDocumentFragment>
+ at end
+
+ at interface WebCoreDOMText : WebCoreDOMNode <WebDOMText>
+ at end
+
+ at interface WebCoreDOMComment : WebCoreDOMNode <WebDOMComment>
+ at end
+
+ at interface WebCoreDOMCDATASection : WebCoreDOMNode <WebDOMCDATASection>
+ at end
+
+ at interface WebCoreDOMProcessingInstruction : WebCoreDOMNode <WebDOMProcessingInstruction>
+ at end
+
+
diff --git a/WebCore/kwq/WebCoreDOMDocument.mm b/WebCore/kwq/WebCoreDOMDocument.mm
new file mode 100644
index 0000000..3ec9653
--- /dev/null
+++ b/WebCore/kwq/WebCoreDOMDocument.mm
@@ -0,0 +1,290 @@
+/*	
+    WebCoreDOMDocument.mm
+    Copyright 2002, Apple, Inc. All rights reserved.
+*/
+#include "WebCoreDOMPrivate.h"
+
+DOM::DOMImplementation DOM::DOMImplementationImpl::createInstance(DOM::DOMImplementationImpl *impl)
+{
+    return DOM::DOMImplementation(impl);
+}
+
+DOM::DocumentType DOM::DocumentTypeImpl::createInstance (DOM::DocumentTypeImpl *impl)
+{
+    return DOM::DocumentType (impl);
+}
+
+DOM::Document DOM::DocumentImpl::createInstance (DOM::DocumentImpl *impl)
+{
+    return DOM::Document (impl);
+}
+
+NSString *domStringToNSString(DOM::DOMString &aString)
+{
+    return @"";
+}
+
+DOM::DOMString NSStringToDOMString(NSString *aString)
+{
+    return DOM::DOMString();
+}
+
+ at implementation WebCoreDOMDocumentType
+
++ (WebCoreDOMDocumentType *)documentTypeWithImpl: (DOM::DocumentTypeImpl *)_impl
+{
+    return [[(WebCoreDOMDocumentType *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl: (DOM::DocumentTypeImpl *)coreImpl
+{
+    [super initWithImpl:coreImpl];
+    return self;
+}
+
+- (void)dealloc
+{
+    impl->deref();
+    [super dealloc];
+}
+
+- (DOM::DocumentTypeImpl *)impl
+{
+    return (DOM::DocumentTypeImpl *)impl;
+}
+
+- (NSString *)name
+{
+    DOM::DOMString name = [self impl]->name();
+    return domStringToNSString(name);
+}
+
+- (id<WebDOMNamedNodeMap>)entities
+{
+    return [WebCoreDOMNamedNodeMap namedNodeMapWithImpl:[self impl]->entities()];
+}
+
+- (id<WebDOMNamedNodeMap>)notations
+{
+    return [WebCoreDOMNamedNodeMap namedNodeMapWithImpl:[self impl]->entities()];
+}
+
+- (NSString *)publicId
+{
+    DOM::DOMString publicId = [self impl]->publicId();
+    return domStringToNSString(publicId);
+}
+
+- (NSString *)systemId
+{
+    DOM::DOMString systemId = [self impl]->systemId();
+    return domStringToNSString(systemId);
+}
+
+- (NSString *)internalSubset
+{
+    DOM::DOMString internalSubset = [self impl]->internalSubset();
+    return domStringToNSString(internalSubset);
+}
+ at end
+
+
+ at implementation WebCoreDOMImplementation
+
++ (WebCoreDOMImplementation *)implementionatWithImpl: (DOM::DOMImplementationImpl *)_impl
+{
+    return [[(WebCoreDOMImplementation *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl: (DOM::DOMImplementationImpl *)coreImpl
+{
+    [super init];
+    impl = coreImpl;
+    impl->ref();
+    return self;
+}
+
+- (void)dealloc
+{
+    impl->deref();
+    [super dealloc];
+}
+
+- (DOM::DOMImplementationImpl *)impl
+{
+    return (DOM::DOMImplementationImpl *)impl;
+}
+
+- (BOOL)hasFeature: (NSString *)feature : (NSString *)version
+{
+    return [self impl]->hasFeature(NSStringToDOMString(feature),NSStringToDOMString(version));
+}
+
+- (id<WebDOMDocumentType>)createDocumentType: (NSString *)qualifiedName :(NSString *)publicId :(NSString *)systemId;
+{
+    DOM::DOMString _qualifiedName = NSStringToDOMString(qualifiedName);
+    DOM::DOMString _publicId = NSStringToDOMString(publicId);
+    DOM::DOMString _systemId = NSStringToDOMString(systemId);
+    DOM::DOMImplementation instance = DOM::DOMImplementationImpl::createInstance([self impl]);
+    DOM::DocumentType ret;
+    
+    ret = instance.createDocumentType (_qualifiedName, _publicId, _systemId);
+    
+    return [WebCoreDOMDocumentType documentTypeWithImpl: (DOM::DocumentTypeImpl *)ret.handle()];
+}
+
+- (id<WebDOMDocument>)createDocument: (NSString *)namespaceURI :(NSString *)qualifiedName :doctype
+{
+    DOM::DOMString _namespaceURI = NSStringToDOMString(namespaceURI);
+    DOM::DOMString _qualifiedName = NSStringToDOMString(qualifiedName);
+    DOM::DOMImplementation instance = DOM::DOMImplementationImpl::createInstance([self impl]);
+    DOM::DocumentType docTypeInstance = DOM::DocumentTypeImpl::createInstance([(WebCoreDOMDocumentType *)doctype impl]);
+    DOM::Document ret;
+    
+    ret = instance.createDocument (_namespaceURI, _qualifiedName, docTypeInstance);
+    
+    return [WebCoreDOMDocument documentWithImpl: (DOM::DocumentImpl *)ret.handle()];
+}
+ at end
+
+
+
+ at implementation WebCoreDOMDocument
+
++ (WebCoreDOMDocument *)documentWithImpl: (DOM::DocumentImpl *)_impl
+{
+    return [[(WebCoreDOMDocument *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl: (DOM::DocumentImpl *)coreImpl
+{
+    [super initWithImpl:coreImpl];
+    return self;
+}
+
+- (void)dealloc
+{
+    impl->deref();
+    [super dealloc];
+}
+
+- (DOM::DocumentImpl *)impl
+{
+    return (DOM::DocumentImpl *)impl;
+}
+
+- (id<WebDOMDocumentType>)doctype
+{
+    return [WebCoreDOMDocumentType documentTypeWithImpl: [self impl]->doctype()];
+}
+
+- (id<WebDOMImplementation>)implementation
+{
+    return [WebCoreDOMImplementation implementationWithImpl: [self impl]->implementation()];
+}
+
+- (id<WebDOMElement>)documentElement
+{
+    return [WebCoreDOMElement elementWithImpl: [self impl]->documentElement()];
+}
+
+- (id<WebDOMElement>)createElement:(NSString *)tagName
+{
+    return [WebCoreDOMElement elementWithImpl: [self impl]->createElement(NSStringToDOMString(tagName))];
+}
+
+- (id<WebDOMElement>)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName
+{
+    return [WebCoreDOMElement elementWithImpl: [self impl]->createElementNS(NSStringToDOMString(namespaceURI),NSStringToDOMString(qualifiedName))];
+}
+
+- (id<WebDOMDocumentFragment>)createDocumentFragment
+{
+    return [WebCoreDOMDocumentFragment documentFragmentWithImpl: [self impl]->createDocumentFragment()];
+}
+
+- (id<WebDOMText>)createTextNode:(NSString *)data
+{
+    return [WebCoreDOMText textWithImpl: [self impl]->createTextNode(NSStringToDOMString(data))];
+}
+
+- (id<WebDOMComment>)createComment:(NSString *)data
+{
+    return [WebCoreDOMComment commentWithImpl: [self impl]->createComment(NSStringToDOMString(data))];
+}
+
+- (id<WebDOMCDATASection>)createCDATASection:(NSString *)data
+{
+    return [WebCoreDOMCDATASection CDATASectionWithImpl: [self impl]->createCDATASection(NSStringToDOMString(data))];
+}
+
+- (id<WebDOMProcessingInstruction>)createProcessingInstruction:(NSString *)target :(NSString *)data
+{
+    DOM::DOMString _target = NSStringToDOMString(target);
+    DOM::DOMString _data = NSStringToDOMString(data);
+    return [WebCoreDOMProcessingInstruction processingInstructionWithImpl: [self impl]->createProcessingInstruction(_target,_data)];
+}
+
+- (id<WebDOMAttr>)createAttribute:(NSString *)name
+{
+    DOM::DOMString _name = NSStringToDOMString(name);
+    DOM::Document instance = DOM::DocumentImpl::createInstance([self impl]);
+    DOM::AttrImpl *attr = (DOM::AttrImpl *)instance.createAttribute(_name).handle();
+    return [WebCoreDOMAttr attrWithImpl: attr];
+}
+
+- (id<WebDOMAttr>)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName
+{
+    DOM::DOMString _namespaceURI = NSStringToDOMString(namespaceURI);
+    DOM::DOMString _qualifiedName = NSStringToDOMString(qualifiedName);
+    DOM::Document instance = DOM::DocumentImpl::createInstance([self impl]);
+    DOM::Attr ret;
+    
+    ret= instance.createAttributeNS (_namespaceURI,_qualifiedName);
+    
+    return [WebCoreDOMAttr attrWithImpl:(DOM::AttrImpl *)ret.handle()];
+}
+
+- (id<WebDOMEntityReference>)createEntityReference:(NSString *)name
+{
+    return [WebCoreDOMEntityReference entityReferenceWithImpl: [self impl]->createEntityReference(NSStringToDOMString(name))];
+}
+
+- (id<WebDOMElement>)getElementById:(NSString *)elementId
+{
+    DOM::DOMString _elementId = NSStringToDOMString(elementId);
+    return [WebCoreDOMElement elementWithImpl: [self impl]->getElementById(_elementId)];
+}
+
+- (id<WebDOMNodeList>)getElementsByTagName:(NSString *)tagname
+{
+    DOM::DOMString _tagname = NSStringToDOMString(tagname);
+    DOM::Document instance = DOM::DocumentImpl::createInstance([self impl]);
+    DOM::NodeListImpl *nodeList = (DOM::NodeListImpl *)instance.getElementsByTagName(_tagname).handle();
+    return [WebCoreDOMNodeList nodeListWithImpl: nodeList];
+}
+
+- (id<WebDOMNodeList>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName
+{
+    DOM::DOMString _namespaceURI = NSStringToDOMString(namespaceURI);
+    DOM::DOMString _localName = NSStringToDOMString(localName);
+    DOM::Document instance = DOM::DocumentImpl::createInstance([self impl]);
+    DOM::NodeList ret;
+    
+    ret = instance.getElementsByTagNameNS(_namespaceURI,_localName);
+    
+    return [WebCoreDOMNodeList nodeListWithImpl: (DOM::NodeListImpl *)ret.handle()];
+}
+
+- (id<WebDOMNode>)importNode:importedNode :(BOOL)deep
+{
+    DOM::Node importNode([(WebCoreDOMNode *)importedNode impl]);
+    DOM::Document instance = DOM::DocumentImpl::createInstance([self impl]);
+    DOM::Node ret;
+    
+    ret = instance.importNode(importNode,deep);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)ret.handle()];
+}
+
+ at end
diff --git a/WebCore/kwq/WebCoreDOMNode.mm b/WebCore/kwq/WebCoreDOMNode.mm
new file mode 100644
index 0000000..06ae4c9
--- /dev/null
+++ b/WebCore/kwq/WebCoreDOMNode.mm
@@ -0,0 +1,482 @@
+/*	
+    WebCoreDOMNode.mm
+    Copyright 2002, Apple, Inc. All rights reserved.
+*/
+#import "WebCoreDOMPrivate.h"
+
+
+DOM::NamedNodeMap DOM::NamedNodeMapImpl::createInstance(NamedNodeMapImpl *impl)
+{
+    return DOM::NamedNodeMap(impl);
+}
+
+DOM::Attr DOM::AttrImpl::createInstance(AttrImpl *impl)
+{
+    return DOM::Attr(impl);
+}
+
+ at implementation WebCoreDOMNode
+
++ (WebCoreDOMNode *)nodeWithImpl: (DOM::NodeImpl *)_impl
+{
+    return [[(WebCoreDOMNode *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl:(DOM::NodeImpl *)coreImpl
+{
+    [super init];
+    impl = coreImpl;
+    impl->ref();
+    return self;
+}
+
+- (DOM::NodeImpl *)impl
+{
+    return (DOM::NodeImpl *)impl;
+}
+
+- (void)dealloc
+{
+    [self impl]->deref();
+    [super dealloc];
+}
+
+- (NSString *)nodeName
+{
+    DOM::DOMString _nodeName = [self impl]->nodeName();
+    return domStringToNSString(_nodeName);
+}
+
+- (NSString *)nodeValue
+{
+    DOM::DOMString _nodeValue = [self impl]->nodeValue();
+    return domStringToNSString(_nodeValue);
+}
+
+- (void)setNodeValue: (NSString *)string
+{
+    DOM::Node instance([self impl]);
+    DOM::DOMString _string = NSStringToDOMString(string);
+    instance.setNodeValue(_string);
+}
+
+- (unsigned short)nodeType
+{
+    return [self impl]->nodeType();
+}
+
+- (id<WebDOMNode>)parentNode
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->parentNode()];
+}
+
+- (id<WebDOMNodeList>)childNodes;
+{
+    return [WebCoreDOMNodeList nodeListWithImpl: [self impl]->childNodes()];
+}
+
+- (id<WebDOMNode>)firstChild
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->firstChild()];
+}
+
+- (id<WebDOMNode>)lastChild
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->lastChild()];
+}
+
+- (id<WebDOMNode>) previousSibling
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->previousSibling()];
+}
+
+- (id<WebDOMNode>)nextSibling
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->nextSibling()];
+}
+
+- (id<WebDOMNamedNodeMap>)attributes;
+{
+    DOM::Node instance([self impl]);
+    DOM::NamedNodeMap ret;
+    
+    ret = instance.attributes();
+    
+    return [WebCoreDOMNamedNodeMap namedNodeMapWithImpl: (DOM::NamedNodeMapImpl *)ret.handle()];
+}
+
+- (id<WebDOMDocument>)ownerDocument
+{
+    DOM::Node instance([self impl]);
+    DOM::Document ret;
+    
+    ret = instance.ownerDocument();
+    
+    return [WebCoreDOMDocument documentWithImpl: (DOM::DocumentImpl *)ret.handle()];
+}
+
+- (id<WebDOMNode>)insert:(id<WebDOMNode>)newChild before:(id<WebDOMNode>)refChild
+{
+    DOM::Node instance([self impl]);
+    DOM::Node _newChild([(WebCoreDOMNode *)newChild impl]);
+    DOM::Node _refChild([(WebCoreDOMNode *)refChild impl]);
+    DOM::Node ret;
+    
+    ret = instance.insertBefore (_newChild, _refChild);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)ret.handle()];
+}
+
+- (id<WebDOMNode>)replace:(id<WebDOMNode>)newChild child:(id<WebDOMNode>)oldChild
+{
+    DOM::Node instance([self impl]);
+    DOM::Node _newChild([(WebCoreDOMNode *)newChild impl]);
+    DOM::Node _oldChild([(WebCoreDOMNode *)oldChild impl]);
+    DOM::Node ret;
+    
+    ret = instance.replaceChild (_newChild, _oldChild);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)ret.handle()];
+}
+
+- (id<WebDOMNode>)removeChild:(id<WebDOMNode>)oldChild
+{
+    DOM::Node instance([self impl]);
+    DOM::Node _oldChild([(WebCoreDOMNode *)oldChild impl]);
+    DOM::Node ret;
+    
+    ret = instance.removeChild (_oldChild);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)ret.handle()];
+}
+
+- (id<WebDOMNode>)appendChild:(id<WebDOMNode>)newChild;
+{
+    DOM::Node instance([self impl]);
+    DOM::Node _newChild([(WebCoreDOMNode *)newChild impl]);
+    DOM::Node ret;
+    
+    ret = instance.appendChild (_newChild);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)ret.handle()];
+}
+
+- (BOOL)hasChildNodes
+{
+    return [self impl]->hasChildNodes();
+}
+
+- (id<WebDOMNode>)cloneNode: (BOOL) deep
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->cloneNode(deep)];
+}
+
+- (void)normalize
+{
+    [self impl]->normalize();
+}
+
+- (BOOL)isSupported:(NSString *)feature : (NSString *)version
+{
+    DOM::Node instance([self impl]);
+    
+    return instance.isSupported (NSStringToDOMString(feature), NSStringToDOMString(version));
+}
+
+- (NSString *)namespaceURI
+{
+    DOM::Node instance([self impl]);
+    DOM::DOMString _namespaceURI = instance.namespaceURI();
+    
+    return domStringToNSString (_namespaceURI);
+}
+
+- (NSString *)prefix
+{
+    DOM::DOMString _prefix = [self impl]->prefix();
+    
+    return domStringToNSString(_prefix);
+}
+
+- (void)setPrefix: (NSString *)prefix
+{
+    DOM::Node instance([self impl]);
+    instance.setPrefix(NSStringToDOMString(prefix));
+}
+
+- (NSString *)localName
+{
+    DOM::DOMString _localName = [self impl]->localName();
+    
+    return domStringToNSString(_localName);
+}
+
+- (BOOL)hasAttributes;
+{
+    DOM::Node instance([self impl]);
+    return instance.hasAttributes();
+}
+
+ at end
+
+
+ at implementation WebCoreDOMNodeList
+
++ (WebCoreDOMNodeList *)nodeListWithImpl: (DOM::NodeListImpl *)_impl
+{
+    return [[(WebCoreDOMNodeList *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl:(DOM::NodeListImpl *)coreImpl
+{
+    [super init];
+    impl = coreImpl;
+    impl->ref();
+    return self;
+}
+
+- (DOM::NodeListImpl *)impl
+{
+    return (DOM::NodeListImpl *)impl;
+}
+
+- (void)dealloc
+{
+    [self impl]->deref();
+    [super dealloc];
+}
+
+ at end
+
+
+ at implementation WebCoreDOMNamedNodeMap
+
++ (WebCoreDOMNamedNodeMap *)namedNodeMapWithImpl: (DOM::NamedNodeMapImpl *)_impl
+{
+    return [[(WebCoreDOMNamedNodeMap *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl:(DOM::NamedNodeMapImpl *)coreImpl
+{
+    [super init];
+    impl = coreImpl;
+    impl->ref();
+    return self;
+}
+
+- (DOM::NamedNodeMapImpl *)impl
+{
+    return (DOM::NamedNodeMapImpl *)impl;
+}
+
+- (void)dealloc
+{
+    [self impl]->deref();
+    [super dealloc];
+}
+
+- (unsigned long) length
+{
+    return [self impl]->length();
+}
+
+- (id<WebDOMNode>)getNamedItem:(NSString *)name
+{
+    DOM::NamedNodeMap instance = DOM::NamedNodeMapImpl::createInstance([self impl]);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)instance.getNamedItem(NSStringToDOMString(name)).handle()];
+}
+
+- (id<WebDOMNode>)setNamedItem:(id<WebDOMNode>)arg
+{
+    DOM::NamedNodeMap instance = DOM::NamedNodeMapImpl::createInstance([self impl]);
+    DOM::Node _arg ([(WebCoreDOMNode *)arg impl]);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)instance.setNamedItem(_arg).handle()];
+}
+
+
+- (id<WebDOMNode>)removeNamedItem:(NSString *)name;
+{
+    DOM::NamedNodeMap instance = DOM::NamedNodeMapImpl::createInstance([self impl]);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)instance.removeNamedItem(NSStringToDOMString(name)).handle()];
+}
+
+- (id<WebDOMNode>)item:(unsigned long) index;
+{
+    return [WebCoreDOMNode nodeWithImpl: [self impl]->item(index)];
+}
+
+- (id<WebDOMNode>)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+{
+    DOM::NamedNodeMap instance = DOM::NamedNodeMapImpl::createInstance([self impl]);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)instance.getNamedItemNS(NSStringToDOMString(namespaceURI),NSStringToDOMString(localName)).handle()];
+}
+
+- (id<WebDOMNode>)setNamedItemNS:(id<WebDOMNode>)arg;
+{
+    DOM::NamedNodeMap instance = DOM::NamedNodeMapImpl::createInstance([self impl]);
+    DOM::Node _arg ([(WebCoreDOMNode *)arg impl]);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)instance.setNamedItemNS(_arg).handle()];
+}
+
+- (id<WebDOMNode>)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+{
+    DOM::NamedNodeMap instance = DOM::NamedNodeMapImpl::createInstance([self impl]);
+    
+    return [WebCoreDOMNode nodeWithImpl: (DOM::NodeImpl *)instance.removeNamedItemNS(NSStringToDOMString(namespaceURI),NSStringToDOMString(localName)).handle()];
+}
+
+ at end
+
+ at implementation WebCoreDOMAttr
+
++ (WebCoreDOMAttr *)attrWithImpl: (DOM::AttrImpl *)_impl
+{
+    return [[(WebCoreDOMAttr *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl:(DOM::AttrImpl *)coreImpl
+{
+    [super init];
+    impl = coreImpl;
+    impl->ref();
+    return self;
+}
+
+- (DOM::AttrImpl *)impl
+{
+    return (DOM::AttrImpl *)impl;
+}
+
+- (void)dealloc
+{
+    [self impl]->deref();
+    [super dealloc];
+}
+
+- (NSString *)name
+{
+    DOM::Attr instance = DOM::AttrImpl::createInstance([self impl]);
+    DOM::DOMString _name = instance.name();
+    return domStringToNSString(_name);
+}
+
+- (BOOL)specified
+{
+    return [self impl]->specified();
+}
+
+- (NSString *)value
+{
+    DOM::Attr instance = DOM::AttrImpl::createInstance([self impl]);
+    DOM::DOMString _value = instance.value();
+    
+    return domStringToNSString(_value);
+}
+
+- (void)setValue:(NSString *)value;
+{
+    DOM::Attr instance = DOM::AttrImpl::createInstance([self impl]);
+    instance.setValue (NSStringToDOMString(value));
+}
+
+- (id<WebDOMElement>)ownerElement
+{
+    DOM::Attr instance = DOM::AttrImpl::createInstance([self impl]);
+    return [WebCoreDOMElement elementWithImpl: (DOM::ElementImpl *)instance.ownerElement().handle()];
+}
+
+ at end
+
+
+ at implementation WebCoreDOMCDATASection
+
++ (WebCoreDOMCDATASection *)CDATASectionWithImpl: (DOM::CDATASectionImpl *)_impl
+{
+    return [[(WebCoreDOMCDATASection *)[[self class] alloc] initWithImpl: _impl] autorelease];
+}
+
+- initWithImpl:(DOM::CDATASectionImpl *)coreImpl
+{
+    [super init];
+    impl = coreImpl;
+    impl->ref();
+    return self;
+}
+
+- (DOM::CDATASectionImpl *)impl
+{
+    return (DOM::CDATASectionImpl *)impl;
+}
+
+- (void)dealloc
+{
+    [self impl]->deref();
+    [super dealloc];
+}
+
+ at end
+
+ at implementation WebCoreDOMDocumentFragment
+
++ (WebCoreDOMDocumentFragment *)documentFragmentWithImpl: (DOM::DocumentFragmentImpl *)_impl { return [[(WebCoreDOMDocumentFragment *)[[self class] alloc] initWithImpl: _impl] autorelease]; }
+- initWithImpl:(DOM::DocumentFragmentImpl *)coreImpl { [super init]; impl = coreImpl; impl->ref(); return self; }
+- (DOM::DocumentFragmentImpl *)impl { return (DOM::DocumentFragmentImpl *)impl; }
+- (void)dealloc { [self impl]->deref();  [super dealloc]; }
+
+ at end
+
+ at implementation WebCoreDOMComment
+
++ (WebCoreDOMComment *)commentWithImpl: (DOM::CommentImpl *)_impl { return [[(WebCoreDOMComment *)[[self class] alloc] initWithImpl: _impl] autorelease]; }
+- initWithImpl:(DOM::CommentImpl *)coreImpl { [super init]; impl = coreImpl; impl->ref(); return self; }
+- (DOM::CommentImpl *)impl { return (DOM::CommentImpl *)impl; }
+- (void)dealloc { [self impl]->deref();  [super dealloc]; }
+
+ at end
+
+ at implementation WebCoreDOMElement
+
++ (WebCoreDOMElement *)elementWithImpl: (DOM::ElementImpl *)_impl { return [[(WebCoreDOMElement *)[[self class] alloc] initWithImpl: _impl] autorelease]; }
+- initWithImpl:(DOM::ElementImpl *)coreImpl { [super init]; impl = coreImpl; impl->ref(); return self; }
+- (DOM::ElementImpl *)impl { return (DOM::ElementImpl *)impl; }
+- (void)dealloc { [self impl]->deref();  [super dealloc]; }
+
+ at end
+
+
+ at implementation WebCoreDOMEntityReference
+
++ (WebCoreDOMEntityReference *)entityReferenceWithImpl: (DOM::EntityReferenceImpl *)_impl { return [[(WebCoreDOMEntityReference *)[[self class] alloc] initWithImpl: _impl] autorelease]; }
+- initWithImpl:(DOM::EntityReferenceImpl *)coreImpl { [super init]; impl = coreImpl; impl->ref(); return self; }
+- (DOM::EntityReferenceImpl *)impl { return (DOM::EntityReferenceImpl *)impl; }
+- (void)dealloc { [self impl]->deref();  [super dealloc]; }
+
+ at end
+
+
+ at implementation WebCoreDOMText
+
++ (WebCoreDOMText *)textWithImpl: (DOM::TextImpl *)_impl { return [[(WebCoreDOMText *)[[self class] alloc] initWithImpl: _impl] autorelease]; }
+- initWithImpl:(DOM::TextImpl *)coreImpl { [super init]; impl = coreImpl; impl->ref(); return self; }
+- (DOM::TextImpl *)impl { return (DOM::TextImpl *)impl; }
+- (void)dealloc { [self impl]->deref();  [super dealloc]; }
+
+ at end
+
+
+ at implementation WebCoreDOMProcessingInstruction
+
++ (WebCoreDOMProcessingInstruction *)processingInstructionWithImpl: (DOM::ProcessingInstructionImpl *)_impl
+{ return [[(WebCoreDOMProcessingInstruction *)[[self class] alloc] initWithImpl: _impl] autorelease]; }
+- initWithImpl:(DOM::ProcessingInstructionImpl *)coreImpl { [super init]; impl = coreImpl; impl->ref(); return self; }
+- (DOM::ProcessingInstructionImpl *)impl { return (DOM::ProcessingInstructionImpl *)impl; }
+- (void)dealloc { [self impl]->deref();  [super dealloc]; }
+
+ at end
+
+
diff --git a/WebCore/kwq/WebCoreDOMPrivate.h b/WebCore/kwq/WebCoreDOMPrivate.h
new file mode 100644
index 0000000..f92c61c
--- /dev/null
+++ b/WebCore/kwq/WebCoreDOMPrivate.h
@@ -0,0 +1,102 @@
+/*	
+    WebCoreDOMPrivate.h
+    Copyright 2002, Apple, Inc. All rights reserved.
+*/
+#include <dom/dom_element.h>
+#include <dom/dom_string.h>
+#include <xml/dom_textimpl.h>
+#include <xml/dom_xmlimpl.h>
+#include <xml/dom2_rangeimpl.h>
+#include <xml/dom2_eventsimpl.h>
+#include <xml/xml_tokenizer.h>
+#include <xml/dom_docimpl.h>
+
+#import "WebCoreDOM.h"
+
+extern NSString *domStringToNSString(DOM::DOMString &aString);
+extern DOM::DOMString NSStringToDOMString(NSString *aString);
+
+ at interface WebCoreDOMDocumentType (CorePrivate)
++ (WebCoreDOMDocumentType *)documentTypeWithImpl: (DOM::DocumentTypeImpl *)impl;
+- initWithImpl: (DOM::DocumentTypeImpl *)coreImpl;
+- (DOM::DocumentTypeImpl *)impl;
+ at end
+
+ at interface WebCoreDOMImplementation (CorePrivate)
++ (WebCoreDOMImplementation *)implementationWithImpl: (DOM::DOMImplementationImpl *)impl;
+- initWithImpl: (DOM::DOMImplementationImpl *)coreImpl;
+- (DOM::DOMImplementationImpl *)impl;
+ at end
+
+ at interface WebCoreDOMDocument (CorePrivate)
++ (WebCoreDOMDocument *)documentWithImpl: (DOM::DocumentImpl *)impl;
+- initWithImpl: (DOM::DocumentImpl *)coreImpl;
+- (DOM::DocumentImpl *)impl;
+ at end
+
+ at interface WebCoreDOMNamedNodeMap (CorePrivate)
++ (WebCoreDOMNamedNodeMap *)namedNodeMapWithImpl: (DOM::NamedNodeMapImpl *)impl;
+- initWithImpl: (DOM::NamedNodeMapImpl *)coreImpl;
+- (DOM::NamedNodeMapImpl *)impl;
+ at end
+
+ at interface WebCoreDOMElement (CorePrivate)
++ (WebCoreDOMElement *)elementWithImpl: (DOM::ElementImpl *)impl;
+- initWithImpl: (DOM::ElementImpl *)coreImpl;
+- (DOM::ElementImpl *)impl;
+ at end
+
+ at interface WebCoreDOMAttr (CorePrivate)
++ (WebCoreDOMAttr *)attrWithImpl: (DOM::AttrImpl *)impl;
+- initWithImpl: (DOM::AttrImpl *)coreImpl;
+- (DOM::AttrImpl *)impl;
+ at end
+
+ at interface WebCoreDOMDocumentFragment (CorePrivate)
++ (WebCoreDOMDocumentFragment *)documentFragmentWithImpl: (DOM::DocumentFragmentImpl *)impl;
+- initWithImpl: (DOM::DocumentFragmentImpl *)coreImpl;
+- (DOM::DocumentFragmentImpl *)impl;
+ at end
+
+ at interface WebCoreDOMText (CorePrivate)
++ (WebCoreDOMText *)textWithImpl: (DOM::TextImpl *)impl;
+- initWithImpl: (DOM::TextImpl *)coreImpl;
+- (DOM::TextImpl *)impl;
+ at end
+
+ at interface WebCoreDOMComment (CorePrivate)
++ (WebCoreDOMComment *)commentWithImpl: (DOM::CommentImpl *)impl;
+- initWithImpl: (DOM::CommentImpl *)coreImpl;
+- (DOM::CommentImpl *)impl;
+ at end
+
+ at interface WebCoreDOMCDATASection (CorePrivate)
++ (WebCoreDOMCDATASection *)CDATASectionWithImpl: (DOM::CDATASectionImpl *)impl;
+- initWithImpl: (DOM::CDATASectionImpl *)coreImpl;
+- (DOM::CDATASectionImpl *)impl;
+ at end
+
+ at interface WebCoreDOMProcessingInstruction (CorePrivate)
++ (WebCoreDOMProcessingInstruction *)processingInstructionWithImpl: (DOM::ProcessingInstructionImpl *)impl;
+- initWithImpl: (DOM::ProcessingInstructionImpl *)coreImpl;
+- (DOM::ProcessingInstructionImpl *)impl;
+ at end
+
+ at interface WebCoreDOMEntityReference (CorePrivate)
++ (WebCoreDOMEntityReference *)entityReferenceWithImpl: (DOM::EntityReferenceImpl *)impl;
+- initWithImpl: (DOM::EntityReferenceImpl *)coreImpl;
+- (DOM::EntityReferenceImpl *)impl;
+ at end
+
+ at interface WebCoreDOMNode (CorePrivate)
++ (WebCoreDOMNode *)nodeWithImpl: (DOM::NodeImpl *)impl;
+- initWithImpl: (DOM::NodeImpl *)coreImpl;
+- (DOM::NodeImpl *)impl;
+ at end
+
+ at interface WebCoreDOMNodeList (CorePrivate)
++ (WebCoreDOMNodeList *)nodeListWithImpl: (DOM::NodeListImpl *)impl;
+- initWithImpl: (DOM::NodeListImpl *)coreImpl;
+- (DOM::NodeListImpl *)impl;
+ at end
+
diff --git a/WebKit/DOM.subproj/WebDOMDocument.h b/WebCore/kwq/WebDOMDocument.h
similarity index 79%
copy from WebKit/DOM.subproj/WebDOMDocument.h
copy to WebCore/kwq/WebDOMDocument.h
index 52679b5..03767fc 100644
--- a/WebKit/DOM.subproj/WebDOMDocument.h
+++ b/WebCore/kwq/WebDOMDocument.h
@@ -48,7 +48,8 @@
 
 - (id<WebDOMDocumentType>)createDocumentType: (NSString *)qualifiedName
                                       :(NSString *)publicId
-                                      :(NSString *)systemId;
+                                      :(NSString *)systemId
+                                      :(int *)exceptionCode;
 
 - (id<WebDOMDocument>)createDocument: (NSString *)namespaceURI
                               : (NSString *)qualifiedName
@@ -61,11 +62,11 @@
 
 - (id<WebDOMDocumentType>)doctype;
 
-- (id<WebDOMDocument>)implementation;
+- (id<WebDOMImplementation>)implementation;
 
-- (id<WebDOMDocument>)documentElement;
+- (id<WebDOMElement>)documentElement;
 
-- (id<WebDOMDocument>)createElement:(NSString *)tagName;
+- (id<WebDOMElement>)createElement:(NSString *)tagName;
 
 - (id<WebDOMElement>)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
 
@@ -81,16 +82,18 @@
 
 - (id<WebDOMAttr>)createAttribute:(NSString *)name;
 
+/*
 - (id<WebDOMAttr>)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
+*/
 
 - (id<WebDOMEntityReference>)createEntityReference:(NSString *)name;
 
 - (id<WebDOMElement>)getElementById:(NSString *)elementId;
 
-- (id<WebDOMEntityReference>)getElementsByTagName:(NSString *)tagname;
+- (id<WebDOMNodeList>)getElementsByTagName:(NSString *)tagname;
 
-- (id<WebDOMEntityReference>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
+- (id<WebDOMNodeList>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
 
-- (id<WebDOMEntityReference>)importNode:(id<WebDOMNode>)importedNode :(BOOL)deep;
+- (id<WebDOMNode>)importNode:(id<WebDOMNode>)importedNode :(BOOL)deep;
 
 @end
diff --git a/WebKit/DOM.subproj/WebDOMElement.h b/WebCore/kwq/WebDOMElement.h
similarity index 100%
copy from WebKit/DOM.subproj/WebDOMElement.h
copy to WebCore/kwq/WebDOMElement.h
diff --git a/WebKit/DOM.subproj/WebDOMNode.h b/WebCore/kwq/WebDOMNode.h
similarity index 57%
copy from WebKit/DOM.subproj/WebDOMNode.h
copy to WebCore/kwq/WebDOMNode.h
index 3d95b3b..b66e56e 100644
--- a/WebKit/DOM.subproj/WebDOMNode.h
+++ b/WebCore/kwq/WebDOMNode.h
@@ -27,53 +27,52 @@ enum WebNodeType {
 @protocol WebDOMNode <NSObject>
 
 - (NSString *)nodeName;
-
 - (NSString *)nodeValue;
-
 - (void)setNodeValue: (NSString *)string; 
-
 - (unsigned short)nodeType;
-
 - (id<WebDOMNode>)parentNode;
-
 - (id<WebDOMNodeList>)childNodes;
-
 - (id<WebDOMNode>)firstChild;
-
 - (id<WebDOMNode>)lastChild;
-
 - (id<WebDOMNode>) previousSibling;
-
 - (id<WebDOMNode>)nextSibling;
-
 - (id<WebDOMNamedNodeMap>)attributes;
-
 - (id<WebDOMDocument>)ownerDocument;
-
-- (id<WebDOMNode>)insert:(id<WebDOMDocument>)newChild before:(id<WebDOMDocument>)refChild;
-
-- (id<WebDOMNode>)replace:(id<WebDOMDocument>)newChild child:(id<WebDOMDocument>)oldChild;
-
-- (id<WebDOMNode>)removeChild:(id<WebDOMDocument>)oldChild;
-
-- (id<WebDOMNode>)appendChild:(id<WebDOMDocument>)newChild;
-
+- (id<WebDOMNode>)insert:(id<(WebDOMNode)>)newChild before:(id<WebDOMNode>)refChild;
+- (id<WebDOMNode>)replace:(id<WebDOMNode>)newChild child:(id<WebDOMNode>)oldChild;
+- (id<WebDOMNode>)removeChild:(id<WebDOMNode>)oldChild;
+- (id<WebDOMNode>)appendChild:(id<WebDOMNode>)newChild;
 - (BOOL)hasChildNodes;
-
 - (id<WebDOMNode>)cloneNode: (BOOL) deep;
-
 - (void)normalize;
-
 - (BOOL)isSupported:(NSString *)feature : (NSString *)version;
+- (NSString *)namespaceURI;
+- (NSString *)prefix;
+- (void)setPrefix: (NSString *)prefix;
+- (NSString *)localName;
+- (BOOL)hasAttributes;
 
-- (NSString *)namespaceURIt;
+ at end
 
-- (NSString *)prefix;
 
-- (void)setPrefix: (NSString *)prefix;
+ at protocol WebDOMNamedNodeMap <NSObject>
 
-- (NSString *)localName;
+- (unsigned long) length;
+- (id<WebDOMNode>)getNamedItem:(NSString *)name;
+- (id<WebDOMNode>)setNamedItem:(id<WebDOMNode>)arg;
+- (id<WebDOMNode>)removeNamedItem:(NSString *)name;
+- (id<WebDOMNode>)item:(unsigned long) index;
+- (id<WebDOMNode>)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+- (id<WebDOMNode>)setNamedItemNS:(id<WebDOMNode>)arg;
+- (id<WebDOMNode>)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
 
-- (BOOL)hasAttributes;
+ at end
+
+
+ at protocol WebDOMNodeList <NSObject>
+
+- (unsigned long)length;
+- (id<WebDOMNode>)item: (unsigned long)index;
 
 @end
+
diff --git a/WebKit/ChangeLog b/WebKit/ChangeLog
index ebf73c8..737bafe 100644
--- a/WebKit/ChangeLog
+++ b/WebKit/ChangeLog
@@ -1,3 +1,15 @@
+2002-10-08  Richard Williamson   <rjw at apple.com>
+
+        Fixes to the DOM API.
+        
+        * DOM.subproj/WebDOMDocument.h:
+        * DOM.subproj/WebDOMDocument.m:
+        * DOM.subproj/WebDOMNode.h:
+        * DOM.subproj/WebDOMNode.m:
+        * DOM.subproj/WebDOMNamedNodeMap.h: Removed.
+        * DOM.subproj/WebDOMNamedNodeMap.m: Removed.
+        * WebKit.pbproj/project.pbxproj:
+
 2002-10-08  Ken Kocienda  <kocienda at apple.com>
 
 	Use WebFrameLoadType variable to set the request cache policy for the WebResourceRequest.
diff --git a/WebKit/ChangeLog-2002-12-03 b/WebKit/ChangeLog-2002-12-03
index ebf73c8..737bafe 100644
--- a/WebKit/ChangeLog-2002-12-03
+++ b/WebKit/ChangeLog-2002-12-03
@@ -1,3 +1,15 @@
+2002-10-08  Richard Williamson   <rjw at apple.com>
+
+        Fixes to the DOM API.
+        
+        * DOM.subproj/WebDOMDocument.h:
+        * DOM.subproj/WebDOMDocument.m:
+        * DOM.subproj/WebDOMNode.h:
+        * DOM.subproj/WebDOMNode.m:
+        * DOM.subproj/WebDOMNamedNodeMap.h: Removed.
+        * DOM.subproj/WebDOMNamedNodeMap.m: Removed.
+        * WebKit.pbproj/project.pbxproj:
+
 2002-10-08  Ken Kocienda  <kocienda at apple.com>
 
 	Use WebFrameLoadType variable to set the request cache policy for the WebResourceRequest.
diff --git a/WebKit/DOM.subproj/WebDOMDocument.h b/WebKit/DOM.subproj/WebDOMDocument.h
index 52679b5..03767fc 100644
--- a/WebKit/DOM.subproj/WebDOMDocument.h
+++ b/WebKit/DOM.subproj/WebDOMDocument.h
@@ -48,7 +48,8 @@
 
 - (id<WebDOMDocumentType>)createDocumentType: (NSString *)qualifiedName
                                       :(NSString *)publicId
-                                      :(NSString *)systemId;
+                                      :(NSString *)systemId
+                                      :(int *)exceptionCode;
 
 - (id<WebDOMDocument>)createDocument: (NSString *)namespaceURI
                               : (NSString *)qualifiedName
@@ -61,11 +62,11 @@
 
 - (id<WebDOMDocumentType>)doctype;
 
-- (id<WebDOMDocument>)implementation;
+- (id<WebDOMImplementation>)implementation;
 
-- (id<WebDOMDocument>)documentElement;
+- (id<WebDOMElement>)documentElement;
 
-- (id<WebDOMDocument>)createElement:(NSString *)tagName;
+- (id<WebDOMElement>)createElement:(NSString *)tagName;
 
 - (id<WebDOMElement>)createElementNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
 
@@ -81,16 +82,18 @@
 
 - (id<WebDOMAttr>)createAttribute:(NSString *)name;
 
+/*
 - (id<WebDOMAttr>)createAttributeNS:(NSString *)namespaceURI :(NSString *)qualifiedName;
+*/
 
 - (id<WebDOMEntityReference>)createEntityReference:(NSString *)name;
 
 - (id<WebDOMElement>)getElementById:(NSString *)elementId;
 
-- (id<WebDOMEntityReference>)getElementsByTagName:(NSString *)tagname;
+- (id<WebDOMNodeList>)getElementsByTagName:(NSString *)tagname;
 
-- (id<WebDOMEntityReference>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
+- (id<WebDOMNodeList>)getElementsByTagNameNS:(NSString *)namespaceURI :(NSString *)localName;
 
-- (id<WebDOMEntityReference>)importNode:(id<WebDOMNode>)importedNode :(BOOL)deep;
+- (id<WebDOMNode>)importNode:(id<WebDOMNode>)importedNode :(BOOL)deep;
 
 @end
diff --git a/WebKit/DOM.subproj/WebDOMDocument.m b/WebKit/DOM.subproj/WebDOMDocument.m
index de740c4..e7fc812 100644
--- a/WebKit/DOM.subproj/WebDOMDocument.m
+++ b/WebKit/DOM.subproj/WebDOMDocument.m
@@ -2,7 +2,7 @@
     WebDOMDocument.m
     Copyright 2002, Apple, Inc. All rights reserved.
 */
-
-
 #import <WebKit/WebDOMDocument.h>
 
+#import <WebCore/WebCoreDOM.h>
+
diff --git a/WebKit/DOM.subproj/WebDOMNamedNodeMap.h b/WebKit/DOM.subproj/WebDOMNamedNodeMap.h
deleted file mode 100644
index bd433ab..0000000
--- a/WebKit/DOM.subproj/WebDOMNamedNodeMap.h
+++ /dev/null
@@ -1,38 +0,0 @@
-/*	
-    WebDOMNamedNodeMap.h
-    Copyright 2002, Apple, Inc. All rights reserved.
-*/
-
-#import <Foundation/Foundation.h>
-
- at protocol WebDOMNode;
-
-
- at protocol WebDOMNamedNodeMap <NSObject>
-
-- (unsigned long) length;
-
-- (id<WebDOMNode>)getNamedItem:(NSString *)name;
-
-- (id<WebDOMNode>)setNamedItem:(id<WebDOMNode>)arg;
-
-- (id<WebDOMNode>)removeNamedItem:(NSString *)name;
-
-- (id<WebDOMNode>)item:(unsigned long) index;
-
-- (id<WebDOMNode>)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
-
-- (id<WebDOMNode>)setNamedItemNS:(id<WebDOMNode>)arg;
-
-- (id<WebDOMNode>)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
-
- at end
-
-
- at protocol WebDOMNodeList <NSObject>
-
-- (unsigned long)length;
-
-- (id<WebDOMNode>)item: (unsigned long)index;
-
- at end
diff --git a/WebKit/DOM.subproj/WebDOMNamedNodeMap.m b/WebKit/DOM.subproj/WebDOMNamedNodeMap.m
deleted file mode 100644
index 0702a0c..0000000
--- a/WebKit/DOM.subproj/WebDOMNamedNodeMap.m
+++ /dev/null
@@ -1,7 +0,0 @@
-/*	
-    WebDOMNamedNodeMap.m
-    Copyright 2002, Apple, Inc. All rights reserved.
-*/
-
-#import <WebKit/WebDOMNamedNodeMap.h>
-
diff --git a/WebKit/DOM.subproj/WebDOMNode.h b/WebKit/DOM.subproj/WebDOMNode.h
index 3d95b3b..7cc3595 100644
--- a/WebKit/DOM.subproj/WebDOMNode.h
+++ b/WebKit/DOM.subproj/WebDOMNode.h
@@ -50,13 +50,13 @@ enum WebNodeType {
 
 - (id<WebDOMDocument>)ownerDocument;
 
-- (id<WebDOMNode>)insert:(id<WebDOMDocument>)newChild before:(id<WebDOMDocument>)refChild;
+- (id<WebDOMNode>)insert:(id<WebDOMNode>)newChild before:(id<WebDOMNode>)refChild;
 
-- (id<WebDOMNode>)replace:(id<WebDOMDocument>)newChild child:(id<WebDOMDocument>)oldChild;
+- (id<WebDOMNode>)replace:(id<WebDOMNode>)newChild child:(id<WebDOMNode>)oldChild;
 
-- (id<WebDOMNode>)removeChild:(id<WebDOMDocument>)oldChild;
+- (id<WebDOMNode>)removeChild:(id<WebDOMNode>)oldChild;
 
-- (id<WebDOMNode>)appendChild:(id<WebDOMDocument>)newChild;
+- (id<WebDOMNode>)appendChild:(id<WebDOMNode>)newChild;
 
 - (BOOL)hasChildNodes;
 
@@ -66,7 +66,7 @@ enum WebNodeType {
 
 - (BOOL)isSupported:(NSString *)feature : (NSString *)version;
 
-- (NSString *)namespaceURIt;
+- (NSString *)namespaceURI;
 
 - (NSString *)prefix;
 
@@ -77,3 +77,33 @@ enum WebNodeType {
 - (BOOL)hasAttributes;
 
 @end
+
+
+ at protocol WebDOMNamedNodeMap <NSObject>
+
+- (unsigned long) length;
+
+- (id<WebDOMNode>)getNamedItem:(NSString *)name;
+
+- (id<WebDOMNode>)setNamedItem:(id<WebDOMNode>)arg;
+
+- (id<WebDOMNode>)removeNamedItem:(NSString *)name;
+
+- (id<WebDOMNode>)item:(unsigned long) index;
+
+- (id<WebDOMNode>)getNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+
+- (id<WebDOMNode>)setNamedItemNS:(id<WebDOMNode>)arg;
+
+- (id<WebDOMNode>)removeNamedItemNS:(NSString *)namespaceURI :(NSString *)localName;
+
+ at end
+
+
+ at protocol WebDOMNodeList <NSObject>
+
+- (unsigned long)length;
+
+- (id<WebDOMNode>)item: (unsigned long)index;
+
+ at end
diff --git a/WebKit/DOM.subproj/WebDOMNode.m b/WebKit/DOM.subproj/WebDOMNode.m
index 03ff905..8eb735f 100644
--- a/WebKit/DOM.subproj/WebDOMNode.m
+++ b/WebKit/DOM.subproj/WebDOMNode.m
@@ -4,5 +4,3 @@
 */
 
 #import <WebKit/WebDOMNode.h>
-
-
diff --git a/WebKit/WebKit.pbproj/project.pbxproj b/WebKit/WebKit.pbproj/project.pbxproj
index b667f51..88ca6e5 100644
--- a/WebKit/WebKit.pbproj/project.pbxproj
+++ b/WebKit/WebKit.pbproj/project.pbxproj
@@ -72,7 +72,6 @@
 				F58C8A07025BD3BC018635CA,
 				F531DDFF02F0C36F018635CA,
 			);
-			hasScannedForEncodings = 1;
 			isa = PBXProject;
 			knownRegions = (
 				English,
@@ -282,7 +281,6 @@
 				F57FB8C6034E180101A80180,
 				F57D1953034E734901A80180,
 				F57D1955034E734901A80180,
-				F57D1957034E734901A80180,
 				F57D1959034E734901A80180,
 			);
 			isa = PBXHeadersBuildPhase;
@@ -377,7 +375,6 @@
 				F57FB8C7034E180101A80180,
 				F57D1954034E734901A80180,
 				F57D1956034E734901A80180,
-				F57D1958034E734901A80180,
 				F57D195A034E734901A80180,
 				9367C637034E9F00008635C5,
 			);
@@ -2226,18 +2223,6 @@
 			settings = {
 			};
 		};
-		F57D1957034E734901A80180 = {
-			fileRef = F57D194F034E734901A80180;
-			isa = PBXBuildFile;
-			settings = {
-			};
-		};
-		F57D1958034E734901A80180 = {
-			fileRef = F57D1950034E734901A80180;
-			isa = PBXBuildFile;
-			settings = {
-			};
-		};
 		F57D1959034E734901A80180 = {
 			fileRef = F57D1951034E734901A80180;
 			isa = PBXBuildFile;

-- 
WebKit Debian packaging



More information about the Pkg-webkit-commits mailing list