| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 var newChild; | 91 var newChild; |
| 92 var nodeValue; | 92 var nodeValue; |
| 93 var appendedChild; | 93 var appendedChild; |
| 94 var replaced; | 94 var replaced; |
| 95 | 95 |
| 96 var docRef = null; | 96 var docRef = null; |
| 97 if (typeof(this.doc) != 'undefined') { | 97 if (typeof(this.doc) != 'undefined') { |
| 98 docRef = this.doc; | 98 docRef = this.doc; |
| 99 } | 99 } |
| 100 doc = load(docRef, "doc", "hc_staff"); | 100 doc = load(docRef, "doc", "hc_staff"); |
| 101 parent = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml
:lang"); | 101 parent = doc.createAttribute("xml:lang"); |
| 102 oldChild = doc.createEntityReference("delta"); | 102 oldChild = doc.createEntityReference("delta"); |
| 103 appendedChild = parent.appendChild(oldChild); | 103 appendedChild = parent.appendChild(oldChild); |
| 104 newChild = doc.createTextNode("Text"); | 104 newChild = doc.createTextNode("Text"); |
| 105 replaced = parent.replaceChild(newChild,oldChild); | 105 replaced = parent.replaceChild(newChild,oldChild); |
| 106 nodeValue = parent.value; | 106 nodeValue = parent.value; |
| 107 | 107 |
| 108 assertEquals("nodereplacechild34","Text",nodeValue); | 108 assertEquals("nodereplacechild34","Text",nodeValue); |
| 109 | 109 |
| 110 } | 110 } |
| 111 | 111 |
| 112 | 112 |
| 113 | 113 |
| 114 | 114 |
| 115 function runTest() { | 115 function runTest() { |
| 116 nodereplacechild34(); | 116 nodereplacechild34(); |
| 117 } | 117 } |
| OLD | NEW |