/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | element.c | 35 lxb_dom_element_t *element; in lxb_dom_element_interface_create() local 39 if (element == NULL) { in lxb_dom_element_interface_create() 48 return element; in lxb_dom_element_interface_create() 169 lxb_dom_element_t *element; in lxb_dom_element_create() local 197 if (element == NULL) { in lxb_dom_element_create() 233 return element; in lxb_dom_element_create() 359 element->attr_id = attr; in lxb_dom_element_attr_append() 382 element->last_attr = attr; in lxb_dom_element_attr_append() 386 attr->owner = element; in lxb_dom_element_attr_append() 398 (void) element; in lxb_dom_element_attr_remove() [all …]
|
H A D | element.h | 78 lxb_dom_element_destroy(lxb_dom_element_t *element); 131 lxb_dom_element_is_set(lxb_dom_element_t *element, 194 if (element->attr_id == NULL) { in lxb_dom_element_id() 208 if (element->attr_class == NULL) { in lxb_dom_element_class() 235 return element->first_attr; in lxb_dom_element_first_attribute() 253 return element->last_attr; in lxb_dom_element_last_attribute() 259 return element->attr_id; in lxb_dom_element_id_attribute() 265 return element->attr_class; in lxb_dom_element_class_attribute() 269 lxb_dom_element_tag_id(lxb_dom_element_t *element) in lxb_dom_element_tag_id() argument 275 lxb_dom_element_ns_id(lxb_dom_element_t *element) in lxb_dom_element_ns_id() argument [all …]
|
H A D | event_target.c | 14 lxb_dom_event_target_t *element; in lxb_dom_event_target_create() local 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_event_target_create() 18 if (element == NULL) { in lxb_dom_event_target_create() 22 lxb_dom_interface_node(element)->type = LXB_DOM_NODE_TYPE_UNDEF; in lxb_dom_event_target_create() 24 return element; in lxb_dom_event_target_create()
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_watch.c | 530 zend_hash_add_ptr(&watch->elements, element->str, element); 536 return element; 542 element = phpdbg_add_watch_element(&watch, element); 544 return element; 563 element = next; 670 if (element->watch && element->watch->type == WATCH_ON_BUCKET) { 810 efree(element); 861 …memcpy(&element->backup, &element->watch->backup, /* element->watch->size */ sizeof(element->backu… 926 zend_hash_del(&element->parent->child_container, element->str); 1316 element = element->child; [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | element.h | 23 lxb_dom_element_t element; member 35 (*lxb_html_element_style_cb_f)(lxb_html_element_t *element, 53 lxb_html_element_style_by_name(lxb_html_element_t *element, 70 lxb_html_element_style_walk(lxb_html_element_t *element, 75 lxb_html_element_style_parse(lxb_html_element_t *element, 126 lxb_html_element_tag_id(lxb_html_element_t *element) in lxb_html_element_tag_id() argument 128 return lxb_dom_interface_node(element)->local_name; in lxb_html_element_tag_id() 132 lxb_html_element_ns_id(lxb_html_element_t *element) in lxb_html_element_ns_id() argument 134 return lxb_dom_interface_node(element)->ns; in lxb_html_element_ns_id() 159 lxb_html_element_remove(lxb_html_element_t *element) in lxb_html_element_remove() argument [all …]
|
H A D | template_element.c | 14 lxb_html_template_element_t *element; in lxb_html_template_element_interface_create() local 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_template_element_interface_create() 18 if (element == NULL) { in lxb_html_template_element_interface_create() 22 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_html_template_element_interface_create() 27 element->content = lxb_dom_document_fragment_interface_create(node->owner_document); in lxb_html_template_element_interface_create() 28 if (element->content == NULL) { in lxb_html_template_element_interface_create() 29 return lxb_html_template_element_interface_destroy(element); in lxb_html_template_element_interface_create() 32 element->content->node.ns = LXB_NS_HTML; in lxb_html_template_element_interface_create() 33 element->content->host = lxb_dom_interface_element(element); in lxb_html_template_element_interface_create() 35 return element; in lxb_html_template_element_interface_create()
|
H A D | style_element.c | 14 lxb_html_style_element_t *element; in lxb_html_style_element_interface_create() local 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_style_element_interface_create() 18 if (element == NULL) { in lxb_html_style_element_interface_create() 22 lxb_dom_node_t *node = lxb_dom_interface_node(element); in lxb_html_style_element_interface_create() 27 return element; in lxb_html_style_element_interface_create() 47 lxb_html_style_element_parse(lxb_html_style_element_t *element) in lxb_html_style_element_parse() argument 55 lxb_dom_document_t *ddoc = lxb_dom_interface_node(element)->owner_document; in lxb_html_style_element_parse() 59 node = lxb_dom_interface_node(element); in lxb_html_style_element_parse() 72 element->stylesheet = lxb_css_stylesheet_parse(css->parser, str->data, in lxb_html_style_element_parse() 75 if (element->stylesheet == NULL) { in lxb_html_style_element_parse() [all …]
|
H A D | element.c | 19 lxb_html_element_t *element; member 51 lxb_html_element_t *element; in lxb_html_element_interface_create() local 55 if (element == NULL) { in lxb_html_element_interface_create() 64 return element; in lxb_html_element_interface_create() 82 node = lxb_html_document_parse_fragment(doc, &element->element, html, size); in lxb_html_element_inner_html_set() 191 lxb_html_element_style_walk(lxb_html_element_t *element, in lxb_html_element_style_walk() argument 197 walk.element = element; in lxb_html_element_style_walk() 202 return lexbor_avl_foreach(NULL, &element->style, in lxb_html_element_style_walk() 254 element->list = list; in lxb_html_element_style_parse() 423 lxb_html_element_style_remove_by_id(element, id); in lxb_html_element_style_remove_by_name() [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOM4_ParentNode_prepend.phpt | 14 $element = $dom->documentElement; 15 $firstMark = $element->childNodes[0]; 16 $element->prepend( 17 $dom->createElement('element', 'content'), 21 var_dump($element->childElementCount); 24 $element = $dom->documentElement; 25 $element->prepend( 26 $dom->createElement('element', 'content'), 29 var_dump($element->childElementCount); 36 <element> [all …]
|
H A D | gh10234.phpt | 60 string(38) "<element attribute="value"></element> 64 string(42) "<element attribute="new value"></element> 67 string(50) "<element attribute="hello & world"></element> 70 string(54) "<element attribute="<b>hi</b>"></element> 73 string(45) "<element attribute='quote "test"'></element> 76 string(45) "<element attribute="quote 'test'"></element> 79 string(57) "<element attribute="quote '"test"'"></element> 81 -- Document element tests -- 83 string(74) "<element attribute="quote '"test"'">hello & world</element> 89 string(69) "<element attribute="quote '"test"'">quote "test"</element> [all …]
|
H A D | element_child_and_parent_node_without_document.phpt | 8 $element = new DOMElement("p", " Hello World! "); 9 $element->append("APPENDED"); 10 $element->prepend("PREPENDED"); 11 $element->after("AFTER"); 12 $element->before("BEFORE"); 13 $element->replaceWith("REPLACE"); 16 $doc->adoptNode($element); 17 echo $doc->saveXML($element), "\n";
|
H A D | DOM4_ParentNode_append.phpt | 14 $element = $dom->documentElement; 15 $element->append( 16 $dom->createElement('element', 'content'), 21 print_node_list_compact($element->childNodes); 23 $element->append( 24 $dom->createElement('element', 'content'), 37 <element> 39 </element>
|
H A D | bug81433.phpt | 9 $element = $dom->createElement('test', 'root'); 11 $dom->appendChild($element); 13 $element->setAttribute("id", 123); 14 $element->setIdAttribute("id", true); 16 $node = $element->getAttributeNode("id"); 19 $element->setIdAttribute("id", true);
|
/php-src/Zend/ |
H A D | zend_llist.c | 168 element=l->head; in zend_llist_apply_with_del() 169 while (element) { in zend_llist_apply_with_del() 170 next = element->next; in zend_llist_apply_with_del() 174 element = next; in zend_llist_apply_with_del() 183 for (element=l->head; element; element=element->next) { in zend_llist_apply() 184 func(element->data); in zend_llist_apply() 211 for (element=l->head; element; element=element->next) { in zend_llist_sort() 212 *ptr++ = element; in zend_llist_sort() 235 for (element=l->head; element; element=element->next) { in zend_llist_apply_with_argument() 236 func(element->data, arg); in zend_llist_apply_with_argument() [all …]
|
H A D | zend_observer.c | 129 for (zend_llist_element *element = list->head; element; element = element->next) { in zend_observer_fcall_install() local 131 memcpy(&init, element->data, sizeof init); in zend_observer_fcall_install() 343 …for (zend_llist_element *element = zend_observer_function_declared_callbacks.head; element; elemen… in _zend_observer_function_declared_notify() local 361 …for (zend_llist_element *element = zend_observer_class_linked_callbacks.head; element; element = e… in _zend_observer_class_linked_notify() local 375 …for (zend_llist_element *element = zend_observer_error_callbacks.head; element; element = element-… in _zend_observer_error_notify() local 398 zend_llist_element *element; in zend_observer_fiber_init_notify() local 403 for (element = zend_observer_fiber_init.head; element; element = element->next) { in zend_observer_fiber_init_notify() 411 zend_llist_element *element; in zend_observer_fiber_switch_notify() local 418 for (element = zend_observer_fiber_switch.head; element; element = element->next) { in zend_observer_fiber_switch_notify() 429 zend_llist_element *element; in zend_observer_fiber_destroy_notify() local [all …]
|
/php-src/ext/dom/tests/modern/spec/ |
H A D | element_dump.inc | 2 function dumpElement(DOM\Element $element) { 3 echo "tagName: ", var_dump($element->tagName); 4 echo "nodeName: ", var_dump($element->nodeName); 5 echo "textContent: ", var_dump($element->textContent); 6 echo "prefix: ", var_dump($element->prefix); 7 echo "namespaceURI: ", var_dump($element->namespaceURI); 8 echo $element->ownerDocument->saveHTML($element), "\n\n";
|
H A D | Document_createElement.phpt | 13 $element = $dom->createElement("HTML"); 14 $element->textContent = "&hello"; 15 dumpElement($element); 17 $element = $dom->createElement("HEad"); 18 dumpElement($element); 23 $element = $dom->createElement("HTML"); 24 $element->textContent = "&hello"; 25 $dom->appendChild($element); 27 dumpElement($element); 33 $dom->appendChild($element); [all …]
|
H A D | create_element_util.inc | 3 $element = $doc->createElement($name); 4 if ($value) $element->textContent = $value; 5 return $element; 9 $element = $doc->createElementNS($ns, $name); 10 if ($value) $element->textContent = $value; 11 return $element;
|
/php-src/tests/classes/ |
H A D | array_access_009.phpt | 10 function proxyGet($element); 12 function proxyUnset($element, $index); 18 private $element; 22 echo __METHOD__ . "($element)\n"; 23 if (!$object->offsetExists($element)) 25 $object[$element] = array(); 28 $this->element = $element; 82 function proxyGet($element) 84 return $this->person[$element]; 143 ["element":"ArrayProxy":private]=> [all …]
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | in_head.c | 81 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_in_head_open() local 84 if (element == NULL) { in lxb_html_tree_insertion_mode_in_head_open() 97 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_in_head_open() local 100 if (element == NULL) { in lxb_html_tree_insertion_mode_in_head_open() 120 if (element == NULL) { in lxb_html_tree_insertion_mode_in_head_open() 140 if (element == NULL) { in lxb_html_tree_insertion_mode_in_head_open() 154 if (element == NULL) { in lxb_html_tree_insertion_mode_in_head_open() 245 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_in_head_script() local 256 if (element == NULL) { in lxb_html_tree_insertion_mode_in_head_script() 293 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_in_head_template() local [all …]
|
H A D | after_head.c | 64 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_after_head_open() local 68 if (element == NULL) { in lxb_html_tree_insertion_mode_after_head_open() 82 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_after_head_open() local 85 if (element == NULL) { in lxb_html_tree_insertion_mode_after_head_open() 191 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_after_head_anything_else() local 198 if (element == NULL) { in lxb_html_tree_insertion_mode_after_head_anything_else() 213 lxb_html_element_t *element; in lxb_html_tree_insertion_mode_after_head_create_body() local 215 element = lxb_html_tree_insert_html_element(tree, token); in lxb_html_tree_insertion_mode_after_head_create_body() 216 if (element == NULL) { in lxb_html_tree_insertion_mode_after_head_create_body() 220 tree->document->body = lxb_html_interface_body(element); in lxb_html_tree_insertion_mode_after_head_create_body() [all …]
|
/php-src/ext/dom/tests/manually_call_constructor/ |
H A D | element.phpt | 2 Manually call __construct() - element variation 8 $element = new DOMElement('foo', 'my value'); 9 var_dump($element->nodeName, $element->textContent); 10 $element->__construct('foo2', 'my new value'); 11 var_dump($element->nodeName, $element->textContent); 18 $doc->documentElement->appendChild($element); 21 $element->__construct('foo3', 'my new new value'); 22 $doc->documentElement->appendChild($element);
|
/php-src/ext/dom/tests/modern/extensions/ |
H A D | Element_getDescendantNamespaces.phpt | 16 echo "element->nodeName: "; 44 element->nodeName: string(7) "c:child" 50 element->nodeName: string(7) "c:child" 68 element->nodeName: string(7) "d:child" 72 element->nodeName: string(7) "d:child" 76 element->nodeName: string(7) "d:child" 82 element->nodeName: string(7) "d:child" 86 element->nodeName: string(7) "d:child" 90 element->nodeName: string(7) "d:child" 96 element->nodeName: string(4) "root" [all …]
|
/php-src/ext/dom/tests/modern/xml/ |
H A D | simplexml_interop.phpt | 11 $element = Dom\import_simplexml($sxe); 12 var_dump($element->attributes); 13 echo $element->ownerDocument->saveXml($element), "\n"; 15 $element->appendChild($element->ownerDocument->createElementNS('urn:a', 'child')); 16 echo $element->ownerDocument->saveXml($element), "\n"; 19 echo $element->ownerDocument->saveXml($element), "\n"; 29 var_dump(Dom\import_simplexml($sxe) === $element);
|
/php-src/ext/dom/tests/modern/token_list/ |
H A D | equality.phpt | 9 $element = $dom->documentElement; 11 var_dump($element->classList === $element->classList); 12 $list = $element->classList; 14 var_dump($list === $element->classList); 16 var_dump($list === $element->firstChild->classList);
|