OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 Copyright © 2001-2004 World Wide Web Consortium, | 3 Copyright © 2001-2004 World Wide Web Consortium, |
4 (Massachusetts Institute of Technology, European Research Consortium | 4 (Massachusetts Institute of Technology, European Research Consortium |
5 for Informatics and Mathematics, Keio University). All | 5 for Informatics and Mathematics, Keio University). All |
6 Rights Reserved. This work is distributed under the W3C® Software License [1] i
n the | 6 Rights Reserved. This work is distributed under the W3C® Software License [1] i
n the |
7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even | 7 hope that it will be useful, but WITHOUT ANY WARRANTY; without even |
8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. | 8 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
9 | 9 |
10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 | 10 [1] http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 var attr; | 93 var attr; |
94 var attrNode; | 94 var attrNode; |
95 var textContent; | 95 var textContent; |
96 | 96 |
97 var docRef = null; | 97 var docRef = null; |
98 if (typeof(this.doc) != 'undefined') { | 98 if (typeof(this.doc) != 'undefined') { |
99 docRef = this.doc; | 99 docRef = this.doc; |
100 } | 100 } |
101 doc = load(docRef, "doc", "hc_staff"); | 101 doc = load(docRef, "doc", "hc_staff"); |
102 elem = doc.createElementNS("http://www.w3.org/1999/xhtml","p"); | 102 elem = doc.createElementNS("http://www.w3.org/1999/xhtml","p"); |
103 attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:l
ang"); | 103 attr = doc.createAttribute("xml:lang"); |
104 attrNode = elem.setAttributeNode(attr); | 104 attrNode = elem.setAttributeNode(attr); |
105 attr.textContent = "NA"; | 105 attr.textContent = "NA"; |
106 | 106 |
107 textContent = attr.textContent; | 107 textContent = attr.textContent; |
108 | 108 |
109 assertEquals("nodesettextcontent06","NA",textContent); | 109 assertEquals("nodesettextcontent06","NA",textContent); |
110 | 110 |
111 } | 111 } |
112 | 112 |
113 | 113 |
114 | 114 |
115 | 115 |
116 function runTest() { | 116 function runTest() { |
117 nodesettextcontent06(); | 117 nodesettextcontent06(); |
118 } | 118 } |
OLD | NEW |