XML.setNamespace() should affect in-scope namespaces, per brendan. No bug, not part of build.

This commit is contained in:
bob%bclary.com 2005-06-08 05:03:12 +00:00
parent 7fe03798c2
commit 8799ec01e3

View File

@ -25,6 +25,7 @@
* Igor Bukanov
* Ethan Hugg
* Milen Nankov
* Werner Sharp
*
* Alternatively, the contents of this file may be used under the terms of
* either the GNU General Public License Version 2 or later (the "GPL"), or
@ -58,4 +59,12 @@ x.setNamespace("http://bar/");
TEST(2, correct, x);
var xhtml1NS = new Namespace('http://www.w3.org/1999/xhtml');
var xhtml = <html />;
xhtml.setNamespace(xhtml1NS);
TEST(3, 1, xhtml.namespaceDeclarations().length);
TEST(4, xhtml1NS, xhtml.namespace());
END();