Module: wine Branch: master Commit: 144b30d941b7beabee0f45e19725ea32c44abb69 URL: https://gitlab.winehq.org/wine/wine/-/commit/144b30d941b7beabee0f45e19725ea3...
Author: Gabriel Ivăncescu gabrielopcode@gmail.com Date: Fri Jul 29 17:30:05 2022 +0300
mshtml: Implement DocumentType node's name prop.
Signed-off-by: Gabriel Ivăncescu gabrielopcode@gmail.com
---
dlls/mshtml/htmldoc.c | 8 ++++++-- dlls/mshtml/tests/documentmode.js | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/dlls/mshtml/htmldoc.c b/dlls/mshtml/htmldoc.c index fb30b9d8405..9092186bcf6 100644 --- a/dlls/mshtml/htmldoc.c +++ b/dlls/mshtml/htmldoc.c @@ -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) diff --git a/dlls/mshtml/tests/documentmode.js b/dlls/mshtml/tests/documentmode.js index c1e5e96125d..b9aea679258 100644 --- a/dlls/mshtml/tests/documentmode.js +++ b/dlls/mshtml/tests/documentmode.js @@ -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() {