| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 | 97 |
| 98 var docRef = null; | 98 var docRef = null; |
| 99 if (typeof(this.doc) != 'undefined') { | 99 if (typeof(this.doc) != 'undefined') { |
| 100 docRef = this.doc; | 100 docRef = this.doc; |
| 101 } | 101 } |
| 102 doc = load(docRef, "doc", "hc_staff"); | 102 doc = load(docRef, "doc", "hc_staff"); |
| 103 docElem = doc.documentElement; | 103 docElem = doc.documentElement; |
| 104 | 104 |
| 105 docFrag = doc.createDocumentFragment(); | 105 docFrag = doc.createDocumentFragment(); |
| 106 attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:l
ang"); | 106 attr = doc.createAttributeNS("http://www.w3.org/XML/1998/namespace","xml:l
ang"); |
| 107 attrNode = docElem.setAttributeNodeNS(attr); | 107 attrNode = docElem.setAttributeNode(attr); |
| 108 appendedChild = docFrag.appendChild(docElem); | 108 appendedChild = docFrag.appendChild(docElem); |
| 109 docFragChild = docFrag.firstChild; | 109 docFragChild = docFrag.firstChild; |
| 110 | 110 |
| 111 docFragChildPosition = docFragChild.compareDocumentPosition(attr); | 111 docFragChildPosition = docFragChild.compareDocumentPosition(attr); |
| 112 assertEquals("nodecomparedocumentpositionIsContainedFollows15",20,docFragC
hildPosition); | 112 assertEquals("nodecomparedocumentpositionIsContainedFollows15",20,docFragC
hildPosition); |
| 113 attrPosition = attr.compareDocumentPosition(docFragChild); | 113 attrPosition = attr.compareDocumentPosition(docFragChild); |
| 114 assertEquals("nodecomparedocumentpositionPRECEEDINGContains15",10,attrPosi
tion); | 114 assertEquals("nodecomparedocumentpositionPRECEEDINGContains15",10,attrPosi
tion); |
| 115 | 115 |
| 116 } | 116 } |
| 117 | 117 |
| 118 | 118 |
| 119 | 119 |
| 120 | 120 |
| 121 function runTest() { | 121 function runTest() { |
| 122 nodecomparedocumentposition15(); | 122 nodecomparedocumentposition15(); |
| 123 } | 123 } |
| OLD | NEW |