/php-src/ext/dom/tests/ |
H A D | DOM4_ParentNode_Fragment.phpt | 12 $fragment = $dom->createDocumentFragment(); 13 $fragment->appendChild($dom->createTextNode('foo')); 15 $fragment->appendChild($dom->createElement('bar', 'LastElement')); 16 $fragment->appendChild($dom->createTextNode('bar')); 18 var_dump($fragment instanceof DOMParentNode); 19 print_node($fragment->firstElementChild); 20 print_node($fragment->lastElementChild); 21 var_dump($fragment->childElementCount); 22 var_dump($fragment->lastElementChild->firstElementChild); 23 var_dump($fragment->lastElementChild->lastElementChild); [all …]
|
H A D | bug67440.phpt | 11 $fragment = $document->createDocumentFragment(); 17 return array($document, $fragment); 21 list($document, $fragment) = createDocument(); 22 $document->documentElement->{$method}($fragment); 27 list($document, $fragment) = createDocument(); 36 list($document, $fragment) = createDocument(); 37 $fragment->removeChild($fragment->firstChild); 43 list($document, $fragment) = createDocument(); 70 -- fragment to document element -- 98 -- fragment to document element -- [all …]
|
H A D | fragments_multiple_nodes_DOMParentNode.phpt | 13 $fragment = $dom->createDocumentFragment(); 14 $fragment->appendChild($dom->createElement('p', '1')); 15 $fragment->appendChild($dom->createElement('b', '2')); 16 $container->replaceWith($fragment); 22 $fragment = $dom->createDocumentFragment(); 23 $fragment->appendChild($dom->createElement('p', '3')); 24 $fragment->appendChild($dom->createElement('b', '4')); 25 $dom->documentElement->prepend($fragment);
|
H A D | gh11625.phpt | 30 $fragment = $dom->createDocumentFragment(); 31 $fragment->appendXML("<p>Hi $i!</p>"); 32 $div->replaceWith($fragment); 38 $fragment = $dom->createDocumentFragment(); 39 $fragment->appendXML("<p>Hi $i!</p>"); 40 $div->replaceWith($fragment, $dom->createElement('x'), "hello"); 43 echo "--- Empty fragment replacement ---\n"; 46 $fragment = $dom->createDocumentFragment(); 47 $div->replaceWith($fragment); 66 --- Empty fragment replacement ---
|
H A D | DOMNode_getRootNode.phpt | 19 $fragment = $dom->createDocumentFragment(); 20 var_dump($fragment->getRootNode() === $fragment); 21 $div = $fragment->appendChild($dom->createElement('div')); 23 var_dump($p->getRootNode() === $fragment);
|
H A D | DOMDocumentFragment_appendXML_hasChildNodes_basic.phpt | 9 $fragment = $doc->createDocumentFragment(); 10 if ($fragment->hasChildNodes()) { 15 $fragment->appendXML('<foo>bar</foo>'); 16 if ($fragment->hasChildNodes()) {
|
H A D | DOMNode_DOMNameSpaceNode_parentElement.phpt | 30 echo "--- fragment test ---\n"; 32 $fragment = $dom->createDocumentFragment(); 33 $p = $fragment->appendChild($dom->createElement('p')); 38 $body->appendChild($fragment); 53 --- fragment test ---
|
H A D | DOMParentNode_empty_argument.phpt | 32 $fragment = $dom->createDocumentFragment(); 33 $fragment->append($dom->createElement('foo')); 34 $fragment->append(...$emptyFragment->childNodes); 35 $fragment->prepend(...$emptyFragment->childNodes); 36 $fragment->append(); 37 $fragment->prepend(); 38 echo $dom->saveXML($fragment), "\n";
|
H A D | DOMDocumentFragment_appendXML_error_002.phpt | 2 DOMDocumentFragment::appendXML() with unbound fragment. 10 $fragment = new DOMDocumentFragment(); 12 $fragment->appendXML('<bait>crankbait</bait>');
|
H A D | DOMElement_replaceChildren.phpt | 41 $fragment = $dom->createDocumentFragment(); 42 $fragment->replaceChildren(); 43 var_dump($dom->saveXML($fragment)); 45 $old = $fragment->appendChild($dom->createElement('p', 'test')); 46 $fragment->replaceChildren($dom->createElement('b', 'test')); 47 echo $dom->saveXML($fragment), "\n";
|
H A D | DOMDocumentFragment_appendXML_error_003.phpt | 14 $fragment = $document->createDocumentFragment(); 15 @$fragment->appendXML('<foo>is<bar>great</foo>'); 16 $root->appendChild($fragment);
|
H A D | DOMDocumentFragment_appendXML_basic_001.phpt | 14 $fragment = $document->createDocumentFragment(); 15 $fragment->appendXML('<foo id="baz">bar</foo>'); 16 $root->appendChild($fragment);
|
H A D | gh11289.phpt | 22 $fragment = $dom->createDocumentFragment(); 23 $fragment->appendXML('<p>Hi!</p>'); 24 $div->replaceWith(...$fragment->childNodes);
|
/php-src/ext/dom/tests/manually_call_constructor/ |
H A D | documentfragment.phpt | 2 Manually call __construct() - document fragment variation 8 $fragment = new DOMDocumentFragment(); 9 var_dump($fragment->textContent); 10 $fragment->__construct(); 11 var_dump($fragment->textContent); 18 @$doc->documentElement->appendChild($fragment); 21 $fragment->__construct(); 22 @$doc->documentElement->appendChild($fragment);
|
/php-src/ext/standard/tests/url/ |
H A D | bug54180.phpt | 2 Bug #54180 (parse_url() incorrectly parses path when ? in fragment) 6 var_dump(parse_url("http://example.com/path/script.html?t=1#fragment?data")); 7 var_dump(parse_url("http://example.com/path/script.html#fragment?data")); 20 ["fragment"]=> 21 string(13) "fragment?data" 30 ["fragment"]=> 31 string(13) "fragment?data"
|
/php-src/ext/dom/tests/modern/html/serializer/ |
H A D | HTMLDocument_serialize_fragment.phpt | 2 Dom\HTMLDocument serialization of document fragment 9 $fragment = $dom->createDocumentFragment(); 10 $fragment->appendChild($dom->createElement("foo")); 11 $bar = $fragment->appendChild($dom->createElement("bar")); 12 $fragment->appendChild($dom->createElement("baz")); 14 echo $dom->saveHtml($fragment);
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | Node_appendChild_fragment_multiple_elements.phpt | 2 Dom\Node::appendChild() with fragment of multiple elements 10 $fragment = $dom->createDocumentFragment(); 11 $fragment->appendChild($dom->createElement('foo')); 12 $fragment->appendChild($dom->createElement('bar')); 15 $dom->appendChild($fragment); 20 echo $dom->saveXml($fragment), "\n";
|
H A D | Node_getRootNode.phpt | 20 $fragment = $dom->createDocumentFragment(); 21 var_dump($fragment->getRootNode() === $fragment); 22 $div = $fragment->appendChild($dom->createElement('div')); 24 var_dump($p->getRootNode() === $fragment);
|
H A D | ParentNode_append_exception_consistency.phpt | 8 $fragment = $dom->createDocumentFragment(); 9 $fragment->append($element = $dom->createElement("foo")); 10 $fragment->append($dom->createElement("bar")); 12 $dom->append($fragment); 31 string(18) "#document-fragment"
|
H A D | pre_insertion_validation.phpt | 74 $fragment = $dom->createDocumentFragment(); 75 $fragment->append($dom->createElement("foo")); 76 $fragment->append($dom->createElement("bar")); 78 $dom->append($fragment); 83 echo "--- Document fragment edge cases with text ---\n"; 86 $fragment = $dom->createDocumentFragment(); 87 $fragment->append("foo"); 88 $fragment->append($dom->createCDATASection("bar")); 90 $dom->append($fragment); 114 --- Document fragment edge cases with multiple elements --- [all …]
|
H A D | Node_insertBefore_01.phpt | 11 $fragment = $dom->createDocumentFragment(); 12 $fragment->appendChild($dom->createElement('a')); 15 $dom->insertBefore($fragment, $dom->doctype);
|
/php-src/ext/dom/tests/modern/xml/ |
H A D | Element_innerHTML_writing_errors.phpt | 36 XML fragment is not well-formed 38 XML fragment is not well-formed 40 XML fragment is not well-formed 42 XML fragment is not well-formed 44 XML fragment is not well-formed 46 XML fragment is not well-formed
|
/php-src/ext/zip/ |
H A D | zip_stream.c | 128 char *fragment; in php_zip_ops_stat() local 133 fragment = strchr(path, '#'); in php_zip_ops_stat() 134 if (!fragment) { in php_zip_ops_stat() 143 fragment_len = strlen(fragment); in php_zip_ops_stat() 157 fragment++; in php_zip_ops_stat() 289 char *fragment; in php_stream_zip_opener() local 296 fragment = strchr(path, '#'); in php_stream_zip_opener() 297 if (!fragment) { in php_stream_zip_opener() 305 fragment_len = strlen(fragment); in php_stream_zip_opener() 319 fragment++; in php_stream_zip_opener() [all …]
|
/php-src/ext/dom/tests/modern/css_selectors/ |
H A D | pseudo_classes_root.phpt | 15 $fragment = $dom->createDocumentFragment(); 16 $fragment->appendXML('<div><p></p></div>'); 17 test_helper($fragment, ':root', true);
|
/php-src/ext/dom/tests/modern/html/interactions/ |
H A D | Dom_Element_insertAdjacentHTML_edge_case.phpt | 10 $fragment = $dom->createDocumentFragment(); 11 $node = $fragment->appendChild($dom->createElement("node")); 15 echo $dom->saveHtml($fragment), "\n";
|