|
1 <?xml version="1.0" encoding="UTF-8"?><?xml-stylesheet href="test-to-html.xsl" type="text/xml"?> |
|
2 |
|
3 <!-- |
|
4 |
|
5 Copyright (c) 2001-2004 World Wide Web Consortium, |
|
6 (Massachusetts Institute of Technology, Institut National de |
|
7 Recherche en Informatique et en Automatique, Keio University). All |
|
8 Rights Reserved. This program is distributed under the W3C's Software |
|
9 Intellectual Property License. This program is distributed in the |
|
10 hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
|
11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR |
|
12 PURPOSE. |
|
13 |
|
14 See W3C License http://www.w3.org/Consortium/Legal/ for more details. |
|
15 |
|
16 --> |
|
17 |
|
18 |
|
19 <test xmlns="http://www.w3.org/2001/DOM-Test-Suite/Level-3" name="nodegetbaseuri17"> |
|
20 <metadata> |
|
21 <title>nodegetbaseuri17</title> |
|
22 <creator>Curt Arnold</creator> |
|
23 <description> |
|
24 Node.getBaseURI for an text node is null. |
|
25 </description> |
|
26 <contributor>Curt Arnold</contributor> |
|
27 <date qualifier="created">2004-01-07</date> |
|
28 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/core#Node3-baseURI"/> |
|
29 <subject resource="http://www.w3.org/Bugs/Public/show_bug.cgi?id=419"/> |
|
30 <subject resource="http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407/infoset-mapping#Infoset2Text"/> |
|
31 </metadata> |
|
32 <var name="doc" type="Document"/> |
|
33 <var name="baseURI" type="DOMString"/> |
|
34 <var name="textNode" type="Text"/> |
|
35 <var name="pList" type="NodeList"/> |
|
36 <var name="pElem" type="Element"/> |
|
37 <load var="doc" href="barfoo_base" willBeModified="true"/> |
|
38 <getElementsByTagName var="pList" obj="doc" |
|
39 tagname='"p"' interface="Document"/> |
|
40 <item var="pElem" obj="pList" index="0" interface="NodeList"/> |
|
41 <firstChild var="textNode" obj="pElem" interface="Node"/> |
|
42 <baseURI var="baseURI" obj="textNode" interface="Node"/> |
|
43 <assertNull actual="baseURI" id="baseURI"/> |
|
44 </test> |
|
45 |