Lines Matching refs:fragment
11 $fragment = $document->createDocumentFragment();
12 $fragment->appendChild($document->createTextNode("\n"));
13 $fragment->appendChild($document->createElementNS('http://example/ns', 'myns:childNode', '1'));
14 $fragment->appendChild($document->createTextNode("\n"));
15 $fragment->appendChild($document->createElementNS('http://example/ns', 'myns:childNode', '2'));
16 $fragment->appendChild($document->createTextNode("\n"));
17 return array($document, $fragment);
21 list($document, $fragment) = createDocument();
22 $document->documentElement->{$method}($fragment);
27 list($document, $fragment) = createDocument();
28 $childNodes = iterator_to_array($fragment->childNodes);
36 list($document, $fragment) = createDocument();
37 $fragment->removeChild($fragment->firstChild);
38 $document->documentElement->{$method}($fragment);
43 list($document, $fragment) = createDocument();
44 …$fragment->childNodes[1]->appendChild($document->createElementNS('http://example/ns2', 'myns2:chil…
45 $document->documentElement->{$method}($fragment);
50 echo "-- fragment to document element --\n"; case1('appendChild'); echo "\n";
52 echo "-- fragment to document where first element is not a text node --\n"; case3('appendChild'); e…
53 echo "-- fragment with namespace declarations in children --\n"; case4('appendChild'); echo "\n";
56 echo "-- fragment to document element --\n"; case1('insertBefore'); echo "\n";
58 echo "-- fragment to document where first element is not a text node --\n"; case3('insertBefore'); …
59 echo "-- fragment with namespace declarations in children --\n"; case4('insertBefore'); echo "\n";
62 echo "-- fragment to document element --\n"; case1('insertBefore'); echo "\n";
64 echo "-- fragment to document where first element is not a text node --\n"; case3('insertBefore'); …
65 echo "-- fragment with namespace declarations in children --\n"; case4('insertBefore'); echo "\n";
70 -- fragment to document element --
84 -- fragment to document where first element is not a text node --
90 -- fragment with namespace declarations in children --
98 -- fragment to document element --
112 -- fragment to document where first element is not a text node --
118 -- fragment with namespace declarations in children --
126 -- fragment to document element --
140 -- fragment to document where first element is not a text node --
146 -- fragment with namespace declarations in children --