Jacek Caban : mshtml: Correctly handle DOCUMENT_FRAGMENT_NODE in IHTMLDOMNode::get_nodeType.

Alexandre Julliard julliard at winehq.org
Mon Nov 15 13:28:48 CST 2010


Module: wine
Branch: master
Commit: 22ba44b40195f586583700d93fa623eb02c99927
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=22ba44b40195f586583700d93fa623eb02c99927

Author: Jacek Caban <jacek at codeweavers.com>
Date:   Sun Nov 14 14:42:43 2010 +0100

mshtml: Correctly handle DOCUMENT_FRAGMENT_NODE in IHTMLDOMNode::get_nodeType.

---

 dlls/mshtml/htmlnode.c        |    3 +++
 dlls/mshtml/tests/jstest.html |    1 +
 2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/dlls/mshtml/htmlnode.c b/dlls/mshtml/htmlnode.c
index 932577e..8f61320 100644
--- a/dlls/mshtml/htmlnode.c
+++ b/dlls/mshtml/htmlnode.c
@@ -368,6 +368,9 @@ static HRESULT WINAPI HTMLDOMNode_get_nodeType(IHTMLDOMNode *iface, LONG *p)
     case DOCUMENT_NODE:
         *p = 9;
         break;
+    case DOCUMENT_FRAGMENT_NODE:
+        *p = 11;
+        break;
     default:
         /*
          * FIXME:
diff --git a/dlls/mshtml/tests/jstest.html b/dlls/mshtml/tests/jstest.html
index b5e19ab..ae224cc 100644
--- a/dlls/mshtml/tests/jstest.html
+++ b/dlls/mshtml/tests/jstest.html
@@ -36,6 +36,7 @@ function test_createDocumentFragment() {
 
     ok(typeof(fragment) === "object", "typeof(fragmend) = " + typeof(fragment));
     ok(fragment.parentWindow === window, "fragment.parentWindow != window");
+    ok(fragment.nodeType === 11, "fragment.nodeType = " + fragment.nodeType);
     ok(fragment.nodeName === "#document-fragment", "fragment.nodeName = " + fragment.nodeName);
 }
 




More information about the wine-cvs mailing list