Home
last modified time | relevance | path

Searched refs:fragment (Results 1 – 25 of 76) sorted by relevance

1234

/php-src/ext/dom/tests/
H A DDOM4_ParentNode_Fragment.phpt12 $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 Dbug67440.phpt11 $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 Dfragments_multiple_nodes_DOMParentNode.phpt13 $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 Dgh11625.phpt30 $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 DDOMNode_getRootNode.phpt19 $fragment = $dom->createDocumentFragment();
20 var_dump($fragment->getRootNode() === $fragment);
21 $div = $fragment->appendChild($dom->createElement('div'));
23 var_dump($p->getRootNode() === $fragment);
H A DDOMDocumentFragment_appendXML_hasChildNodes_basic.phpt9 $fragment = $doc->createDocumentFragment();
10 if ($fragment->hasChildNodes()) {
15 $fragment->appendXML('<foo>bar</foo>');
16 if ($fragment->hasChildNodes()) {
H A DDOMNode_DOMNameSpaceNode_parentElement.phpt30 echo "--- fragment test ---\n";
32 $fragment = $dom->createDocumentFragment();
33 $p = $fragment->appendChild($dom->createElement('p'));
38 $body->appendChild($fragment);
53 --- fragment test ---
H A DDOMParentNode_empty_argument.phpt32 $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 DDOMDocumentFragment_appendXML_error_002.phpt2 DOMDocumentFragment::appendXML() with unbound fragment.
10 $fragment = new DOMDocumentFragment();
12 $fragment->appendXML('<bait>crankbait</bait>');
H A DDOMElement_replaceChildren.phpt41 $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 DDOMDocumentFragment_appendXML_error_003.phpt14 $fragment = $document->createDocumentFragment();
15 @$fragment->appendXML('<foo>is<bar>great</foo>');
16 $root->appendChild($fragment);
H A DDOMDocumentFragment_appendXML_basic_001.phpt14 $fragment = $document->createDocumentFragment();
15 $fragment->appendXML('<foo id="baz">bar</foo>');
16 $root->appendChild($fragment);
H A Dgh11289.phpt22 $fragment = $dom->createDocumentFragment();
23 $fragment->appendXML('<p>Hi!</p>');
24 $div->replaceWith(...$fragment->childNodes);
/php-src/ext/dom/tests/manually_call_constructor/
H A Ddocumentfragment.phpt2 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 Dbug54180.phpt2 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 DHTMLDocument_serialize_fragment.phpt2 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 DNode_appendChild_fragment_multiple_elements.phpt2 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 DNode_getRootNode.phpt20 $fragment = $dom->createDocumentFragment();
21 var_dump($fragment->getRootNode() === $fragment);
22 $div = $fragment->appendChild($dom->createElement('div'));
24 var_dump($p->getRootNode() === $fragment);
H A DParentNode_append_exception_consistency.phpt8 $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 Dpre_insertion_validation.phpt74 $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 DNode_insertBefore_01.phpt11 $fragment = $dom->createDocumentFragment();
12 $fragment->appendChild($dom->createElement('a'));
15 $dom->insertBefore($fragment, $dom->doctype);
/php-src/ext/dom/tests/modern/xml/
H A DElement_innerHTML_writing_errors.phpt36 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 Dzip_stream.c128 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 Dpseudo_classes_root.phpt15 $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 DDom_Element_insertAdjacentHTML_edge_case.phpt10 $fragment = $dom->createDocumentFragment();
11 $node = $fragment->appendChild($dom->createElement("node"));
15 echo $dom->saveHtml($fragment), "\n";

Completed in 32 milliseconds

1234