/php-src/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | comment.c | 12 lxb_dom_comment_interface_create(lxb_dom_document_t *document) in lxb_dom_comment_interface_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_comment_interface_create() 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_comment_interface_create() 31 lxb_dom_comment_interface_clone(lxb_dom_document_t *document, in lxb_dom_comment_interface_clone() argument 37 new = lxb_dom_comment_interface_create(document); in lxb_dom_comment_interface_clone()
|
H A D | processing_instruction.c | 12 lxb_dom_processing_instruction_interface_create(lxb_dom_document_t *document) in lxb_dom_processing_instruction_interface_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_processing_instruction_interface_create() 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_processing_instruction_interface_create() 31 lxb_dom_processing_instruction_interface_clone(lxb_dom_document_t *document, in lxb_dom_processing_instruction_interface_clone() argument 37 new = lxb_dom_processing_instruction_interface_create(document); in lxb_dom_processing_instruction_interface_clone()
|
H A D | shadow_root.c | 12 lxb_dom_shadow_root_interface_create(lxb_dom_document_t *document) in lxb_dom_shadow_root_interface_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_shadow_root_interface_create() 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_shadow_root_interface_create()
|
H A D | document_fragment.c | 12 lxb_dom_document_fragment_interface_create(lxb_dom_document_t *document) in lxb_dom_document_fragment_interface_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_document_fragment_interface_create() 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_document_fragment_interface_create()
|
/php-src/ext/dom/ |
H A D | xml_common.h | 27 php_libxml_ref_obj *document; member 71 if (EXPECTED(__intern->document != NULL)) { \ 72 __ptr = (__prtype)__intern->document->ptr); \ 88 ZEND_ASSERT(intern->document != NULL); in php_dom_get_ns_mapper() 89 return (php_dom_libxml_ns_mapper *) intern->document->private_data; in php_dom_get_ns_mapper() 117 static zend_always_inline bool php_dom_follow_spec_doc_ref(const php_libxml_ref_obj *document) in php_dom_follow_spec_doc_ref() argument 119 return document != NULL && document->class_type == PHP_LIBXML_CLASS_MODERN; in php_dom_follow_spec_doc_ref() 125 return php_dom_follow_spec_doc_ref(intern->document); in php_dom_follow_spec_intern()
|
H A D | domimplementation.c | 247 doctobj->document = ((dom_object *)((php_libxml_node_ptr *)docp->_private)->_private)->document; in PHP_METHOD() 267 xmlDocPtr document = NULL; in PHP_METHOD() local 272 document = xmlNewDoc(BAD_CAST "1.0"); in PHP_METHOD() 273 if (UNEXPECTED(document == NULL)) { in PHP_METHOD() 306 (xmlNodePtr) document, in PHP_METHOD() 309 dom_set_xml_class(intern->document); in PHP_METHOD() 316 doctype->doc = document; in PHP_METHOD() 317 document->intSubset = (xmlDtdPtr) doctype; in PHP_METHOD() 318 ZEND_ASSERT(doctype->parent == document); in PHP_METHOD() 339 xmlFreeDoc(document); in PHP_METHOD() [all …]
|
/php-src/ext/dom/tests/ |
H A D | DOMAttr_ownerElement_error_001.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $document->removeChild($root);
|
H A D | DOMCharacterData_substringData_basic_001.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $cdata = $document->createCDATASection('testfest');
|
H A D | DOMCharacterData_deleteData_basic_001.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $cdata = $document->createCDATASection('test');
|
H A D | DOMCharacterData_deleteData_error_002.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $cdata = $document->createCDATASection('test');
|
H A D | DOMDocumentFragment_appendXML_error_003.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $fragment = $document->createDocumentFragment();
|
H A D | DOMNode_replaceChild_error2.phpt | 7 $document = new DOMDocument(); 8 $a = $document->createElement('a'); 9 $b = $document->createElement('b'); 10 $c = $document->createElement('c');
|
H A D | DomNodeList_count.phpt | 10 $document = new DomDocument(); 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 17 $item = $document->createElement('item');
|
H A D | DOMNamedNodeMap_count.phpt | 10 $document = new DomDocument(); 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 17 $item = $document->createElement('item');
|
H A D | DOMDocument_adoptNode.phpt | 16 echo "-- Owner document check before adopting --\n"; 40 echo "-- Adopt node to the original document --\n"; 46 echo "-- Adopt a document (strict error on) --\n"; 54 echo "-- Adopt a document (strict error off) --\n"; 116 -- Owner document check before adopting -- 119 -- Trying to append child from other document -- 135 -- Adopt node to the original document -- 140 -- Adopt a document (strict error on) -- 142 -- Adopt a document (strict error off) -- 150 -- Append an attribute from another document -- [all …]
|
H A D | DOMDocument_getElementsByTagName_liveness_tree_walk.phpt | 25 echo "-- On document, for --\n"; 34 echo "-- On document, foreach --\n"; 39 echo "-- On document, after caching followed by removing --\n"; 52 echo "-- On document, clean list after removal --\n"; 72 -- On document, for -- 79 -- On document, foreach -- 84 -- On document, after caching followed by removing -- 87 -- On document, clean list after removal --
|
/php-src/ext/dom/lexbor/patches/ |
H A D | 0001-Patch-out-CSS-parser.patch | 8 source/lexbor/html/interfaces/document.c | 16 ++++++++++ 27 diff --git a/source/lexbor/html/interfaces/document.c b/source/lexbor/html/interfaces/document.c 29 --- a/source/lexbor/html/interfaces/document.c 30 +++ b/source/lexbor/html/interfaces/document.c 37 lxb_html_document_done(lxb_html_document_t *document); 63 lxb_html_document_css_destroy(document); 69 document->iframe_srcdoc = NULL; 73 lxb_html_document_css_clean(document); 81 lxb_html_document_css_init(lxb_html_document_t *document) 98 lxb_html_document_css_t *css = &document->css; [all …]
|
/php-src/ext/dom/tests/modern/xml/ |
H A D | bug48339.phpt | 7 $document = Dom\XMLDocument::createEmpty(); 8 $element = $document->createElement('test'); 9 $element = $document->appendChild($element); 12 echo $document->saveXml(), "\n";
|
/php-src/ext/dom/lexbor/lexbor/html/tree/insertion_mode/ |
H A D | initial.c | 142 lxb_dom_interface_node(tree->document)); in lxb_html_tree_insertion_mode_initial() 167 lxb_dom_document_t *document = &tree->document->dom_document; in lxb_html_tree_insertion_mode_initial() local 169 if (tree->document->iframe_srcdoc == NULL) { in lxb_html_tree_insertion_mode_initial() 173 document->compat_mode = LXB_DOM_DOCUMENT_CMODE_QUIRKS; in lxb_html_tree_insertion_mode_initial() 216 lxb_dom_node_insert_child_wo_events(&tree->document->dom_document.node, in lxb_html_tree_insertion_mode_initial_doctype() 219 lxb_dom_document_attach_doctype(&tree->document->dom_document, doc_type); in lxb_html_tree_insertion_mode_initial_doctype() 229 if (tree->document->iframe_srcdoc != NULL) { in lxb_html_tree_insertion_mode_initial_doctype_ckeck() 234 lxb_dom_document_t *document = &tree->document->dom_document; in lxb_html_tree_insertion_mode_initial_doctype_ckeck() local 276 document->compat_mode = LXB_DOM_DOCUMENT_CMODE_LIMITED_QUIRKS; in lxb_html_tree_insertion_mode_initial_doctype_ckeck() 285 document->compat_mode = LXB_DOM_DOCUMENT_CMODE_QUIRKS; in lxb_html_tree_insertion_mode_initial_doctype_ckeck()
|
/php-src/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | base_element.c | 12 lxb_html_base_element_interface_create(lxb_html_document_t *document) in lxb_html_base_element_interface_create() argument 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_base_element_interface_create() 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_base_element_interface_create()
|
H A D | body_element.c | 12 lxb_html_body_element_interface_create(lxb_html_document_t *document) in lxb_html_body_element_interface_create() argument 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_body_element_interface_create() 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_body_element_interface_create()
|
H A D | embed_element.c | 12 lxb_html_embed_element_interface_create(lxb_html_document_t *document) in lxb_html_embed_element_interface_create() argument 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_embed_element_interface_create() 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_embed_element_interface_create()
|
H A D | font_element.c | 12 lxb_html_font_element_interface_create(lxb_html_document_t *document) in lxb_html_font_element_interface_create() argument 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_font_element_interface_create() 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_font_element_interface_create()
|
H A D | form_element.c | 12 lxb_html_form_element_interface_create(lxb_html_document_t *document) in lxb_html_form_element_interface_create() argument 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_form_element_interface_create() 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_form_element_interface_create()
|
H A D | marquee_element.c | 12 lxb_html_marquee_element_interface_create(lxb_html_document_t *document) in lxb_html_marquee_element_interface_create() argument 16 element = lexbor_mraw_calloc(document->dom_document.mraw, in lxb_html_marquee_element_interface_create() 24 node->owner_document = lxb_html_document_original_ref(document); in lxb_html_marquee_element_interface_create()
|