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
Родитель e8dbee5d27
Коммит 2fe1a18b36
1 изменённых файлов: 10 добавлений и 1 удалений

Просмотреть файл

@ -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);
END();
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();