Lines Matching refs:doc
9 $doc = new \DOMDocument();
10 $doc->loadXML('<a>foo<last/></a>');
11 $target = $doc->documentElement->firstChild;
13 echo "1 ", $doc->saveXML($doc->documentElement).PHP_EOL;
15 $doc = new \DOMDocument();
16 $doc->loadXML('<a>foo<last/></a>');
17 $target = $doc->documentElement->lastChild;
19 echo "2 ", $doc->saveXML($doc->documentElement).PHP_EOL;
22 $doc = new \DOMDocument();
23 $doc->loadXML('<a>foo<last/></a>');
24 $target = $doc->documentElement->firstChild;
25 $target->after($doc->documentElement->lastChild);
26 echo "3 ", $doc->saveXML($doc->documentElement).PHP_EOL;
28 $doc = new \DOMDocument();
29 $doc->loadXML('<a>foo<last/></a>');
30 $target = $doc->documentElement->lastChild;
31 $target->after($doc->documentElement->firstChild);
32 echo "4 ", $doc->saveXML($doc->documentElement).PHP_EOL;
35 $doc = new \DOMDocument();
36 $doc->loadXML('<a>foo<last/></a>');
37 $target = $doc->documentElement->firstChild;
38 $target->after($target, $doc->documentElement->lastChild);
39 echo "5 ", $doc->saveXML($doc->documentElement).PHP_EOL;
41 $doc = new \DOMDocument();
42 $doc->loadXML('<a>foo<last/></a>');
43 $target = $doc->documentElement->firstChild;
44 $target->after($doc->documentElement->lastChild, $target);
45 echo "6 ", $doc->saveXML($doc->documentElement).PHP_EOL;
48 $doc = new \DOMDocument();
49 $doc->loadXML('<a>foo<last/></a>');
50 $target = $doc->documentElement->lastChild;
51 $target->after($target, $doc->documentElement->firstChild);
52 echo "7 ", $doc->saveXML($doc->documentElement).PHP_EOL;
54 $doc = new \DOMDocument();
55 $doc->loadXML('<a>foo<last/></a>');
56 $target = $doc->documentElement->lastChild;
57 $target->after($doc->documentElement->firstChild, $target);
58 echo "8 ", $doc->saveXML($doc->documentElement).PHP_EOL;
61 $doc = new \DOMDocument();
62 $doc->loadXML('<a>foo<last/></a>');
63 $target = $doc->documentElement->firstChild;
65 echo "9 ", $doc->saveXML($doc->documentElement).PHP_EOL;
67 $doc = new \DOMDocument();
68 $doc->loadXML('<a>foo<last/></a>');
69 $target = $doc->documentElement->lastChild;
71 echo "10 ", $doc->saveXML($doc->documentElement).PHP_EOL;
74 $doc = new \DOMDocument();
75 $doc->loadXML('<a>foo<last/></a>');
76 $target = $doc->documentElement->firstChild;
78 echo "11 ", $doc->saveXML($doc->documentElement).PHP_EOL;
80 $doc = new \DOMDocument();
81 $doc->loadXML('<a>foo<last/></a>');
82 $target = $doc->documentElement->firstChild;
84 echo "12 ", $doc->saveXML($doc->documentElement).PHP_EOL;
86 $doc = new \DOMDocument();
87 $doc->loadXML('<a>foo<last/></a>');
88 $target = $doc->documentElement->firstChild;
90 echo "13 ", $doc->saveXML($doc->documentElement).PHP_EOL;
94 $doc = new \DOMDocument();
95 $doc->loadXML('<a>foo<last/></a>');
96 $target = $doc->documentElement->lastChild;
98 echo "14 ", $doc->saveXML($doc->documentElement).PHP_EOL;
100 $doc = new \DOMDocument();
101 $doc->loadXML('<a>foo<last/></a>');
102 $target = $doc->documentElement->lastChild;
104 echo "15 ", $doc->saveXML($doc->documentElement).PHP_EOL;
106 $doc = new \DOMDocument();
107 $doc->loadXML('<a>foo<last/></a>');
108 $target = $doc->documentElement->lastChild;
110 echo "16 ", $doc->saveXML($doc->documentElement).PHP_EOL;
114 $doc = new \DOMDocument();
115 $doc->loadXML('<a>foo<last/></a>');
116 $target = $doc->documentElement->firstChild;
117 $target->after('bar', $target, $doc->documentElement->lastChild);
118 echo "17 ", $doc->saveXML($doc->documentElement).PHP_EOL;
121 $doc = new \DOMDocument();
122 $doc->loadXML('<a>foo<last/></a>');
123 $target = $doc->documentElement->firstChild;
124 $target->after($target, 'bar', $doc->documentElement->lastChild);
125 echo "18 ", $doc->saveXML($doc->documentElement).PHP_EOL;
128 $doc = new \DOMDocument();
129 $doc->loadXML('<a>foo<last/></a>');
130 $target = $doc->documentElement->firstChild;
131 $target->after($target, $doc->documentElement->lastChild, 'bar');
132 echo "19 ", $doc->saveXML($doc->documentElement).PHP_EOL;
137 $doc = new \DOMDocument();
138 $doc->loadXML('<a>foo<last/></a>');
139 $target = $doc->documentElement->lastChild;
140 $target->after('bar', $doc->documentElement->firstChild, $target);
141 echo "20 ", $doc->saveXML($doc->documentElement).PHP_EOL;
144 $doc = new \DOMDocument();
145 $doc->loadXML('<a>foo<last/></a>');
146 $target = $doc->documentElement->lastChild;
147 $target->after($doc->documentElement->firstChild, 'bar', $target);
148 echo "21 ", $doc->saveXML($doc->documentElement).PHP_EOL;
151 $doc = new \DOMDocument();
152 $doc->loadXML('<a>foo<last/></a>');
153 $target = $doc->documentElement->lastChild;
154 $target->after($doc->documentElement->firstChild, $target, 'bar');
155 echo "22 ", $doc->saveXML($doc->documentElement).PHP_EOL;