mshtml: Add IHTMLDOMNode3::get_namespaceURI implementation.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Jacek Caban 2019-03-28 15:55:56 +01:00 committed by Alexandre Julliard
parent 7858cc01b7
commit 4257a14f47
2 changed files with 12 additions and 2 deletions

View File

@ -1227,8 +1227,14 @@ static HRESULT WINAPI HTMLDOMNode3_get_localName(IHTMLDOMNode3 *iface, VARIANT *
static HRESULT WINAPI HTMLDOMNode3_get_namespaceURI(IHTMLDOMNode3 *iface, VARIANT *p)
{
HTMLDOMNode *This = impl_from_IHTMLDOMNode3(iface);
FIXME("(%p)->(%p)\n", This, p);
return E_NOTIMPL;
nsAString nsstr;
nsresult nsres;
TRACE("(%p)->(%p)\n", This, p);
nsAString_InitDepend(&nsstr, NULL);
nsres = nsIDOMNode_GetNamespaceURI(This->nsnode, &nsstr);
return return_nsstr_variant(nsres, &nsstr, p);
}
static HRESULT WINAPI HTMLDOMNode3_put_textContent(IHTMLDOMNode3 *iface, VARIANT v)

View File

@ -174,15 +174,19 @@ function test_createElementNS() {
elem = document.createElementNS(null, "test");
ok(elem.tagName === "test", "elem.tagName = " + elem.tagName);
ok(elem.namespaceURI === null, "elem.namespaceURI = " + elem.namespaceURI);
elem = document.createElementNS(svg_ns, "test");
ok(elem.tagName === "test", "elem.tagName = " + elem.tagName);
ok(elem.namespaceURI === svg_ns, "elem.namespaceURI = " + elem.namespaceURI);
elem = document.createElementNS(svg_ns, "svg");
ok(elem.tagName === "svg", "elem.tagName = " + elem.tagName);
ok(elem.namespaceURI === svg_ns, "elem.namespaceURI = " + elem.namespaceURI);
elem = document.createElementNS("test", "svg");
ok(elem.tagName === "svg", "elem.tagName = " + elem.tagName);
ok(elem.namespaceURI === "test", "elem.namespaceURI = " + elem.namespaceURI);
next_test();
}