diff options
Diffstat (limited to 'test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml')
-rw-r--r-- | test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml b/test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml new file mode 100644 index 0000000..d7f33df --- /dev/null +++ b/test/testcases/tests/level2/core/hc_namednodemapinvalidtype1.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- +Copyright (c) 2001-2004 World Wide Web Consortium, +(Massachusetts Institute of Technology, Institut National de +Recherche en Informatique et en Automatique, Keio University). All +Rights Reserved. This program is distributed under the W3C's Software +Intellectual Property License. This program is distributed in the +hope that it will be useful, but WITHOUT ANY WARRANTY; without even +the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR +PURPOSE. +See W3C License http://www.w3.org/Consortium/Legal/ for more details. +--><!DOCTYPE test SYSTEM "dom2.dtd"> + +<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-2" name="hc_namednodemapinvalidtype1"> +<metadata> +<title>hc_namednodemapinvalidtype1</title> +<creator>Curt Arnold</creator> +<description> +Attempt to insert an element into an attribute list, +should raise a HIERARCHY_REQUEST_ERR. +</description> + +<date qualifier="created">2004-01-09</date> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#xpointer(id('ID-258A00AF')/constant[@name='HIERARCHY_REQUEST_ERR'])"/> +<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-1025163788"/> +<subject resource="http://www.w3.org/2000/11/DOM-Level-2-errata#core-4"/> +</metadata> +<var name="doc" type="Document"/> +<var name="attributes" type="NamedNodeMap"/> +<var name="docElem" type="Element"/> +<var name="newElem" type="Element"/> +<var name="retval" type="Node"/> +<load var="doc" href="hc_staff" willBeModified="true"/> +<documentElement var="docElem" obj="doc"/> +<attributes var="attributes" obj="docElem"/> +<createElement var="newElem" obj="doc" tagName='"html"'/> +<assertDOMException id="throw_HIERARCHY_REQUEST_ERR"> + <HIERARCHY_REQUEST_ERR> + <setNamedItem var="retval" obj="attributes" arg="newElem"/> + </HIERARCHY_REQUEST_ERR> +</assertDOMException> +</test> |