<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2001 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 "dom1.dtd">

<test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-1" name="documentcreateelementcasesensitive">
<metadata>
<title>documentCreateElementCaseSensitive</title>
<creator>NIST</creator>
<description>
    The tagName parameter in the "createElement(tagName)"
   method is case-sensitive for XML documents.
   Retrieve the entire DOM document and invoke its 
   "createElement(tagName)" method twice.  Once for tagName
   equal to "address" and once for tagName equal to "ADDRESS"
   Each call should create a distinct Element node.  The
   newly created Elements are then assigned attributes 
   that are retrieved.
</description>
<contributor>Mary Brady</contributor>
<date qualifier="created">2001-08-17</date>
<subject resource="http://www.w3.org/TR/1998/REC-DOM-Level-1-19981001/level-one-core#ID-2141741547"/>
</metadata>
<var name="doc" type="Document"/>
<var name="newElement1" type="Element"/>
<var name="newElement2" type="Element"/>
<var name="attribute1" type="DOMString"/>
<var name="attribute2" type="DOMString"/>
<load var="doc" href="staff" willBeModified="true"/>
<createElement obj="doc" var="newElement1" tagName="&quot;ADDRESS&quot;"/>
<createElement obj="doc" var="newElement2" tagName="&quot;address&quot;"/>
<setAttribute obj="newElement1" name="&quot;district&quot;" value="&quot;Fort Worth&quot;"/>
<setAttribute obj="newElement2" name="&quot;county&quot;" value="&quot;Dallas&quot;"/>
<getAttribute obj="newElement1" var="attribute1" name="&quot;district&quot;"/>
<getAttribute obj="newElement2" var="attribute2" name="&quot;county&quot;"/>
<assertEquals actual="attribute1" expected='"Fort Worth"' ignoreCase="false" id="attrib1"/>
<assertEquals actual="attribute2" expected='"Dallas"' ignoreCase="false" id="attrib2"/>
</test>
