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

mshtml: Implement DocumentType node's name prop.

parent d07c8115
......@@ -212,10 +212,14 @@ static HRESULT WINAPI DocumentType_Invoke(IDOMDocumentType *iface, DISPID dispId
static HRESULT WINAPI DocumentType_get_name(IDOMDocumentType *iface, BSTR *p)
{
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)
......
......@@ -670,6 +670,8 @@ sync_test("doctype", function() {
ok(doctype === null, "doctype = " + document.doctype);
return;
}
ok(doctype.name === "html", "doctype.name = " + doctype.name);
});
async_test("iframe_doc_mode", function() {
......
Markdown is supported
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