Home
last modified time | relevance | path

Searched refs:root (Results 1 – 25 of 528) sorted by relevance

12345678910>>...22

/php-src/ext/dom/tests/
H A Dbug32615.phpt21 $root->replaceChild($frag, $root->firstChild);
27 $root->replaceChild($frag, $root->lastChild);
36 $root->insertBefore($frag, $root->firstChild);
42 $root->replaceChild($frag, $root->lastChild);
47 $root->removeChild($root->firstChild);
52 $root->removeChild($root->firstChild);
56 $root->insertBefore($frag, $root->firstChild);
69 $root->replaceChild($frag, $root->firstChild);
76 <root><first/><newsecond/><newthird/><newfourth/></root>
79 <root><first/><second/><third/><fourth/></root>
[all …]
H A DDOMCharacterData_data_basic_002.phpt12 $root = $document->createElement('root');
13 $document->appendChild($root);
16 $root->appendChild($cdata);
25 <root><![CDATA[t]]></root>
28 <root><![CDATA[100]]></root>
H A DDomNodeList_count.phpt11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $root->setAttribute('attribute-' . $i, 'value-' . $i);
18 $root->appendChild($item);
20 var_dump($root->childNodes->length);
21 var_dump($root->childNodes->count());
22 var_dump(count($root->childNodes));
H A DDOMNamedNodeMap_count.phpt11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $root->setAttribute('attribute-' . $i, 'value-' . $i);
18 $root->appendChild($item);
20 var_dump($root->attributes->length);
21 var_dump($root->attributes->count());
22 var_dump(count($root->attributes));
H A Dgh11500.phpt9 $root = $dom->createElementNS($root_ns, 'root');
10 $dom->appendChild($root);
14 $root->appendChild($a1);
18 $root->appendChild($a2);
31 $root = $dom->createElementNS($root_ns, 'root');
32 $dom->appendChild($root);
37 $root->appendChild($a1);
48 $root->appendChild($a2);
102 <root xmlns="http://example.com"><a1><b1/></a1><a2><b2/></a2></root>
120 <root xmlns="http://example.com"><a1><b1><c1/></b1></a1><a2><b2><c2/></b2></a2></root>
[all …]
H A DDOMDocument_saveXML_XML_SAVE_NO_DECL.phpt12 $doc->loadXML('<root>é</root>');
26 <root>&#xE9;</root>
27 <root>&#xE9;</root>
28 <root>é</root>
H A DDOMAttr_ownerElement_error_001.phpt12 $root = $document->createElement('root');
13 $document->appendChild($root);
14 $attr = $root->setAttribute('category', 'books');
15 $document->removeChild($root);
16 $root = null;
/php-src/ext/dom/tests/modern/spec/
H A Dxml_serialize_formatting.phpt9 '<root></root>',
10 '<root> </root>',
16 <root>
35 <root/>
38 <root> </root>
47 <root>
51 </root>
57 <root>
65 </root>
68 <root>
[all …]
H A Dserialize_element_unqualified.phpt8 $dom = Dom\XMLDocument::createFromString('<root xmlns:p1="u1"><child xmlns:p2="u1"><p1:child2/></ch…
11 $dom = Dom\XMLDocument::createFromString('<root xmlns:p1="u1"><child xmlns:p2="u1"></child></root>'…
12 $root = $dom->documentElement;
13 $child2 = $root->ownerDocument->createElementNS('u1', 'child2');
14 $root->firstChild->appendChild($child2);
20 <root xmlns:p1="u1"><child xmlns:p2="u1"><p1:child2/></child></root>
22 <root xmlns:p1="u1"><child xmlns:p2="u1"><p2:child2/></child></root>
H A Dclone_text_nodes.phpt9 $root = $dom->appendChild($dom->createElementNS("urn:a", "a:root"));
10 $root->setAttribute("foo", "bar");
12 $root->appendChild($dom->createTextNode("a"));
13 $root->appendChild($dom->createTextNode("foo"));
14 $root->appendChild($dom->createTextNode("b"));
15 $child = $root->appendChild($dom->createElement("child"));
17 $child2 = $root->appendChild($dom->createElement("child2"));
22 $clone = clone $root;
37 <a:root xmlns:a="urn:a" foo="bar">afoob<child>c</child><child2>d</child2></a:root>
41 <a:root xmlns:a="urn:a" foo="bar">afoob<child>c</child><child2>d</child2></a:root>
H A Dreconciliation_of_attributes.phpt9 $root = $dom->appendChild($dom->createElement('root'));
11 $root->setAttributeNS("urn:a", "a:root1", "bar");
12 $root1 = $root->getAttributeNodeNS("urn:a", "root1");
13 $root->setAttributeNS("urn:b", "a:root2", "bar");
14 $root2 = $root->getAttributeNodeNS("urn:b", "root2");
15 $root->setAttributeNS("urn:a", "a:root3", "bar");
16 $root3 = $root->getAttributeNodeNS("urn:a", "root3");
18 $child = $root->appendChild($dom->createElement("child"));
31 $root->setAttributeNodeNS($child1);
41root xmlns:a="urn:a" a:root1="bar" xmlns:ns1="urn:b" ns1:root2="bar" a:root3="bar"><child xmlns:a=…
[all …]
H A Ddom_parsing_gh47_bis.phpt10 $dom = Dom\XMLDocument::createFromString('<root xmlns=""><child xmlns=""/></root>');
13 $dom = Dom\XMLDocument::createFromString('<root xmlns="urn:u1"><child xmlns="urn:u1"/></root>');
19 <root xmlns=""><child xmlns=""/></root>
21 <root xmlns="urn:u1"><child xmlns="urn:u1"/></root>
/php-src/ext/ffi/tests/
H A Dlist.phpt11 private $root;
29 $this->root = $node;
33 $root = $this->root;
34 $node = $root->next;
35 while ($node != $root) {
40 FFI::free($root);
53 $root = $this->root;
54 $node = $root->next;
55 while ($node != $root) {
69 $root = $this->root;
[all …]
/php-src/ext/simplexml/tests/
H A Dbug35785.phpt8 $xml = simplexml_load_string("<root></root>");
11 $xml = simplexml_load_string("<root></root>");
15 $xml = simplexml_load_string("<root></root>");
21 <root><bla><posts><name>FooBar</name></posts></bla></root>
24 <root><bla><posts><name>FooBar</name></posts></bla></root>
26 <root><bla><posts><name>FooBar</name></posts></bla></root>
H A Dbug26976.phpt8 $root = simplexml_load_string(
10 <root>
15 </root>
18 echo $root->child[0], "\n";
19 echo $root->child[1], "\n";
20 echo $root->child[2], "\n";
21 echo $root->child[3], "\n";
/php-src/ext/dom/lexbor/lexbor/core/
H A Dsbst.h37 const lexbor_sbst_entry_static_t *root, in lexbor_sbst_entry_static_find() argument
40 while (root != strt) { in lexbor_sbst_entry_static_find()
41 if (root->key == key) { in lexbor_sbst_entry_static_find()
42 return root; in lexbor_sbst_entry_static_find()
44 else if (key > root->key) { in lexbor_sbst_entry_static_find()
45 root = &strt[root->right]; in lexbor_sbst_entry_static_find()
48 root = &strt[root->left]; in lexbor_sbst_entry_static_find()
H A Dshs.c34 lexbor_shs_entry_get_static(const lexbor_shs_entry_t *root, in lexbor_shs_entry_get_static() argument
38 entry = root + lexbor_shs_make_id_m(key, key_len, root->key_len); in lexbor_shs_entry_get_static()
49 entry = &root[entry->next]; in lexbor_shs_entry_get_static()
55 entry = &root[entry->next]; in lexbor_shs_entry_get_static()
63 lexbor_shs_entry_get_lower_static(const lexbor_shs_entry_t *root, in lexbor_shs_entry_get_lower_static() argument
67 entry = root + lexbor_shs_make_id_lower_m(key, key_len, root->key_len); in lexbor_shs_entry_get_lower_static()
78 entry = &root[entry->next]; in lexbor_shs_entry_get_lower_static()
84 entry = &root[entry->next]; in lexbor_shs_entry_get_lower_static()
96 entry = root + lexbor_shs_make_id_upper_m(key, key_len, root->key_len); in lexbor_shs_entry_get_upper_static()
107 entry = &root[entry->next]; in lexbor_shs_entry_get_upper_static()
[all …]
/php-src/ext/dom/tests/modern/css_selectors/
H A Dpseudo_classes_root.phpt2 CSS Selectors - Pseudo classes: root
14 test_helper($dom, ':root', true);
17 test_helper($fragment, ':root', true);
18 test_helper($dom->createElement("foo"), ':root', true);
20 test_helper($dom->createElement("not-a-root"), ":root", true);
24 --- Selector: :root ---
26 --- Selector: :root ---
28 --- Selector: :root ---
29 --- Selector: :root ---
/php-src/ext/dom/tests/modern/common/
H A DDocument_title_getter.phpt8 echo "=== HTML namespaced root ===\n";
13 …om\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title> only ws at…
16 …om\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title>only ws at b…
28 $dom = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title></tit…
31 $dom = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"></root>");
34 … = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title> \t\r\n…
46 $dom = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title/></ro…
50 echo "=== SVG namespaced root ===\n";
52 …om = Dom\XMLDocument::createFromString("<root xmlns=\"http://www.w3.org/1999/xhtml\"><title>title<…
66 === HTML namespaced root ===
[all …]
/php-src/ext/standard/tests/serialize/
H A Dserialization_objects_019.phpt7 $root = new stdClass;
9 $root->a = [$end];
10 $root->b = $root->a;
12 echo serialize($root), "\n";
16 $root = new stdClass;
18 $root->a = [[$end]];
19 $root->b = $root->a;
21 echo serialize($root), "\n";
28 $root = [$object, $array];
31 echo serialize($root), "\n";
/php-src/ext/dom/tests/modern/xml/
H A DElement_insertAdjacentHTML.phpt21 $dom = Dom\XMLDocument::createFromString('<root xmlns:x="urn:x"><div/></root>');
42 <root xmlns:x="urn:x"><x:x><y xmlns:x="urn:x2"/></x:x><nons/><div>Sample text</div></root>
47 <root xmlns:x="urn:x"><div><x:x><y xmlns:x="urn:x2"/></x:x><nons/>Sample text</div></root>
63 <root xmlns:x="urn:x"><?pi node?><!-- comment -->&amp;<div>Sample text</div></root>
68 <root xmlns:x="urn:x"><div><?pi node?><!-- comment -->&amp;Sample text</div></root>
73 <root xmlns:x="urn:x"><div>Sample text<?pi node?><!-- comment -->&amp;</div></root>
78 <root xmlns:x="urn:x"><div>Sample text</div><?pi node?><!-- comment -->&amp;</root>
84 <root xmlns:x="urn:x">text node<div>Sample text</div></root>
89 <root xmlns:x="urn:x"><div>text nodeSample text</div></root>
94 <root xmlns:x="urn:x"><div>Sample texttext node</div></root>
[all …]
/php-src/ext/dom/tests/modern/html/serializer/
H A DHTMLDocument_entity_reference.phpt9 $root = $dom1->appendChild($dom1->createElement('root'));
10 $root->appendChild($dom1->createEntityReference('nbsp'));
13 $dom2->appendChild($dom2->importLegacyNode($root, true));
21 <root>&nbsp;</root>
22 <root>&nbsp;</root>
H A DHTMLDocument_serialize_element_ns.phpt9 $root = $dom->appendChild($dom->createElement("root"));
11 $root->append("\n");
12 $root->append($dom->createElementNS("http://php.net", "noprefix"), "\n");
13 $root->append($dom->createElementNS("http://php.net", "with:prefix"), "\n");
14 $root->append($dom->createElementNS("http://www.w3.org/1999/xhtml", "xhtml:br"), "\n");
15 $root->append($dom->createElementNS("http://www.w3.org/2000/svg", "s:svg"), "\n");
16 $root->append($dom->createElementNS("http://www.w3.org/1998/Math/MathML", "m:math"), "\n");
23 <root>
29 </root>
H A DHTMLDocument_serialize_attribute_ns.phpt9 $root = $dom->appendChild($dom->createElement("root"));
10 $root->setAttributeNodeNS($dom->createAttributeNS("http://php.net", "x:foo"));
11 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/XML/1998/namespace", "y:id"));
12 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns"));
13 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:f"));
14 $root->setAttributeNodeNS($dom->createAttributeNS("http://www.w3.org/1999/xlink", "z:f"));
21 <root x:foo="" xml:id="" xmlns="" xmlns:f="" xlink:f=""></root>
/php-src/ext/xmlreader/tests/
H A Dbug42139.phpt10 <!DOCTYPE root [
11 <!ELEMENT root ANY>
14 <root>&x;</root>
26 10, root,
27 1, root,
29 15, root,

Completed in 20 milliseconds

12345678910>>...22