Commit 4257a14f authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

mshtml: Add IHTMLDOMNode3::get_namespaceURI implementation.

parent 7858cc01
......@@ -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)
......
......@@ -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();
}
......
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