Commit 144b30d9 authored by Gabriel Ivăncescu's avatar Gabriel Ivăncescu Committed by Alexandre Julliard
Browse files

mshtml: Implement DocumentType node's name prop.



Signed-off-by: Gabriel Ivăncescu's avatarGabriel Ivăncescu <gabrielopcode@gmail.com>
parent d07c8115
...@@ -212,10 +212,14 @@ static HRESULT WINAPI DocumentType_Invoke(IDOMDocumentType *iface, DISPID dispId ...@@ -212,10 +212,14 @@ static HRESULT WINAPI DocumentType_Invoke(IDOMDocumentType *iface, DISPID dispId
static HRESULT WINAPI DocumentType_get_name(IDOMDocumentType *iface, BSTR *p) static HRESULT WINAPI DocumentType_get_name(IDOMDocumentType *iface, BSTR *p)
{ {
DocumentType *This = impl_from_IDOMDocumentType(iface); DocumentType *This = impl_from_IDOMDocumentType(iface);
nsAString nsstr;
nsresult nsres;
FIXME("(%p)->(%p)\n", This, p); TRACE("(%p)->(%p)\n", This, p);
return E_NOTIMPL; nsAString_Init(&nsstr, NULL);
nsres = nsIDOMDocumentType_GetName((nsIDOMDocumentType*)This->node.nsnode, &nsstr);
return return_nsstr(nsres, &nsstr, p);
} }
static HRESULT WINAPI DocumentType_get_entities(IDOMDocumentType *iface, IDispatch **p) static HRESULT WINAPI DocumentType_get_entities(IDOMDocumentType *iface, IDispatch **p)
......
...@@ -670,6 +670,8 @@ sync_test("doctype", function() { ...@@ -670,6 +670,8 @@ sync_test("doctype", function() {
ok(doctype === null, "doctype = " + document.doctype); ok(doctype === null, "doctype = " + document.doctype);
return; return;
} }
ok(doctype.name === "html", "doctype.name = " + doctype.name);
}); });
async_test("iframe_doc_mode", function() { async_test("iframe_doc_mode", function() {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment