зеркало из https://github.com/mozilla/pjs.git
XML.setNamespace() should affect in-scope namespaces, per brendan. No bug, not part of build.
This commit is contained in:
Родитель
e8dbee5d27
Коммит
2fe1a18b36
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче