/PHP-8.2/ext/dom/lexbor/lexbor/dom/interfaces/ |
H A D | document.c | 81 if (document == NULL) { in lxb_dom_document_init() 85 document->type = type; in lxb_dom_document_init() 90 document->ev_insert = NULL; in lxb_dom_document_init() 91 document->ev_remove = NULL; in lxb_dom_document_init() 92 document->ev_destroy = NULL; in lxb_dom_document_init() 104 document->ns = owner->ns; in lxb_dom_document_init() 181 if (lxb_dom_interface_node(document)->owner_document == document) { in lxb_dom_document_clean() 192 document->element = NULL; in lxb_dom_document_clean() 193 document->doctype = NULL; in lxb_dom_document_clean() 201 if (document == NULL) { in lxb_dom_document_destroy() [all …]
|
H A D | document.h | 90 lxb_dom_document_clean(lxb_dom_document_t *document); 93 lxb_dom_document_destroy(lxb_dom_document_t *document); 132 lxb_dom_document_root(lxb_dom_document_t *document); 145 return document->create_interface(document, tag_id, ns); in lxb_dom_document_create_interface() 176 return lexbor_mraw_free(document->text, text); in lxb_dom_document_destroy_text() 180 lxb_dom_document_element(lxb_dom_document_t *document) in lxb_dom_document_element() argument 182 return document->element; in lxb_dom_document_element() 188 return document->scripting; in lxb_dom_document_scripting() 194 document->scripting = scripting; in lxb_dom_document_scripting_set() 198 lxb_dom_document_owner(lxb_dom_document_t *document) in lxb_dom_document_owner() argument [all …]
|
H A D | document_type.c | 17 lxb_dom_document_type_interface_create(lxb_dom_document_t *document) in lxb_dom_document_type_interface_create() argument 21 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_document_type_interface_create() 29 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_document_type_interface_create() 36 lxb_dom_document_type_interface_clone(lxb_dom_document_t *document, in lxb_dom_document_type_interface_clone() argument 43 new = lxb_dom_document_type_interface_create(document); in lxb_dom_document_type_interface_clone() 53 if (document == dtype->node.owner_document) { in lxb_dom_document_type_interface_clone() 63 data = lxb_dom_attr_qualified_name_append(document->attrs, in lxb_dom_document_type_interface_clone() 74 &dtype->public_id, document->text) == NULL) in lxb_dom_document_type_interface_clone() 80 &dtype->system_id, document->text) == NULL) in lxb_dom_document_type_interface_clone()
|
H A D | cdata_section.c | 12 lxb_dom_cdata_section_interface_create(lxb_dom_document_t *document) in lxb_dom_cdata_section_interface_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_cdata_section_interface_create() 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_cdata_section_interface_create() 31 lxb_dom_cdata_section_interface_clone(lxb_dom_document_t *document, in lxb_dom_cdata_section_interface_clone() argument 37 new = lxb_dom_cdata_section_interface_create(document); in lxb_dom_cdata_section_interface_clone()
|
H A D | event_target.c | 12 lxb_dom_event_target_create(lxb_dom_document_t *document) in lxb_dom_event_target_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_event_target_create() 29 lxb_dom_document_t *document) in lxb_dom_event_target_destroy() argument 31 return lexbor_mraw_free(document->mraw, event_target); in lxb_dom_event_target_destroy()
|
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 | text.c | 12 lxb_dom_text_interface_create(lxb_dom_document_t *document) in lxb_dom_text_interface_create() argument 16 element = lexbor_mraw_calloc(document->mraw, in lxb_dom_text_interface_create() 24 node->owner_document = lxb_dom_document_owner(document); in lxb_dom_text_interface_create() 31 lxb_dom_text_interface_clone(lxb_dom_document_t *document, in lxb_dom_text_interface_clone() argument 37 new = lxb_dom_text_interface_create(document); in lxb_dom_text_interface_clone()
|
/PHP-8.2/ext/dom/lexbor/lexbor/html/interfaces/ |
H A D | document.h | 88 lxb_html_document_clean(lxb_html_document_t *document); 210 return document->head; in lxb_html_document_head_element() 216 return document->body; in lxb_html_document_body_element() 223 != &document->dom_document) in lxb_html_document_original_ref() 228 return lxb_dom_interface_document(document); in lxb_html_document_original_ref() 235 == &document->dom_document; in lxb_html_document_is_original() 239 lxb_html_document_mraw(lxb_html_document_t *document) in lxb_html_document_mraw() argument 254 document->opt = opt; in lxb_html_document_opt_set() 258 lxb_html_document_opt(lxb_html_document_t *document) in lxb_html_document_opt() argument 260 return document->opt; in lxb_html_document_opt() [all …]
|
H A D | document.c | 129 if (document != NULL) { in lxb_html_document_interface_create() 154 if (document == NULL) { in lxb_html_document_interface_create() 170 if (document == NULL) { in lxb_html_document_interface_destroy() 197 document->body = NULL; in lxb_html_document_clean() 198 document->head = NULL; in lxb_html_document_clean() 373 document->css.customs = lexbor_hash_destroy(document->css.customs, true); in lxb_html_document_css_customs_destroy() 709 opt = document->opt; in lxb_html_document_parse() 727 document->opt = opt; in lxb_html_document_parse() 733 document->opt = opt; in lxb_html_document_parse() 798 document->opt = opt; in lxb_html_document_parse_fragment() [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/html/ |
H A D | interface.c | 20 lxb_html_interface_clone_element(lxb_dom_document_t *document, 34 unel = lxb_html_unknown_element_interface_create(document); in lxb_html_interface_create() 66 lxb_html_interface_clone(lxb_dom_document_t *document, in lxb_html_interface_clone() argument 71 if (document == NULL) { in lxb_html_interface_clone() 72 document = node->owner_document; in lxb_html_interface_clone() 77 return lxb_html_interface_clone_element(document, intrfc); in lxb_html_interface_clone() 80 return lxb_dom_text_interface_clone(document, intrfc); in lxb_html_interface_clone() 86 return lxb_dom_comment_interface_clone(document, intrfc); in lxb_html_interface_clone() 89 return lxb_dom_document_interface_clone(document, intrfc); in lxb_html_interface_clone() 100 lxb_html_interface_clone_element(lxb_dom_document_t *document, in lxb_html_interface_clone_element() argument [all …]
|
H A D | parser.c | 124 if (document == NULL) { in lxb_html_parse() 138 return document; in lxb_html_parse() 142 lxb_html_document_interface_destroy(document); in lxb_html_parse() 199 if (document == NULL) { in lxb_html_parse_fragment_chunk_begin() 349 parser->tree->document = NULL; in lxb_html_parse_fragment_chunk_destroy() 377 lxb_html_document_t *document; in lxb_html_parse_chunk_begin() local 383 document = lxb_html_document_interface_create(NULL); in lxb_html_parse_chunk_begin() 384 if (document == NULL) { in lxb_html_parse_chunk_begin() 388 return lxb_html_document_destroy(document); in lxb_html_parse_chunk_begin() 395 return lxb_html_document_destroy(document); in lxb_html_parse_chunk_begin() [all …]
|
/PHP-8.2/ext/dom/lexbor/lexbor/dom/ |
H A D | interface.c | 23 lxb_dom_interface_create(lxb_dom_document_t *document, lxb_tag_id_t tag_id, in lxb_dom_interface_create() argument 28 domel = lxb_dom_element_interface_create(document); in lxb_dom_interface_create() 40 lxb_dom_interface_clone(lxb_dom_document_t *document, in lxb_dom_interface_clone() argument 45 if (document == NULL) { in lxb_dom_interface_clone() 46 document = node->owner_document; in lxb_dom_interface_clone() 51 return lxb_dom_element_interface_clone(document, intrfc); in lxb_dom_interface_clone() 54 return lxb_dom_text_interface_clone(document, intrfc); in lxb_dom_interface_clone() 57 return lxb_dom_processing_instruction_interface_clone(document, in lxb_dom_interface_clone() 60 return lxb_dom_comment_interface_clone(document, intrfc); in lxb_dom_interface_clone() 63 return lxb_dom_document_interface_clone(document, intrfc); in lxb_dom_interface_clone() [all …]
|
H A D | collection.c | 12 lxb_dom_collection_create(lxb_dom_document_t *document) in lxb_dom_collection_create() argument 21 col->document = document; in lxb_dom_collection_create() 33 if (col->document == NULL) { in lxb_dom_collection_init() 64 lxb_dom_collection_make_noi(lxb_dom_document_t *document, size_t start_list_size) in lxb_dom_collection_make_noi() argument 66 return lxb_dom_collection_make(document, start_list_size); in lxb_dom_collection_make_noi()
|
/PHP-8.2/ext/dom/tests/ |
H A D | gh10234.phpt | 7 $document = new DOMDocument(); 13 var_dump($document->saveHTML()); 18 var_dump($document->saveHTML()); 22 var_dump($document->saveHTML()); 26 var_dump($document->saveHTML()); 30 var_dump($document->saveHTML()); 34 var_dump($document->saveHTML()); 38 var_dump($document->saveHTML()); 44 var_dump($document->saveHTML()); 48 var_dump($document->saveHTML()); [all …]
|
H A D | bug67440.phpt | 9 $document = new DOMDocument(); 17 return array($document, $fragment); 23 echo $document->saveXML(); 32 echo $document->saveXML(); 39 echo $document->saveXML(); 46 echo $document->saveXML(); 70 -- fragment to document element -- 77 -- children manually document element -- 98 -- fragment to document element -- 105 -- children manually document element -- [all …]
|
H A D | DOMCharacterData_data_basic_002.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $cdata = $document->createCDATASection('t'); 17 print $document->saveXML()."\n"; 20 print $document->saveXML()."\n";
|
H A D | DOMNode_replaceChild_error1.phpt | 7 $document = new DOMDocument(); 8 $real_parent = $document->createElement('real'); 9 $parent = $document->createElement('p'); 10 $child1 = $document->createElement('child1'); 11 $child2 = $document->createElement('child2'); 12 $child3 = $document->createElement('child3');
|
H A D | DOMNode_replaceChild_basic.phpt | 10 $document = new DOMDocument(); 11 $document->loadXML('<?xml version="1.0" encoding="utf-8"?> 16 $parent = $document->getElementsByTagName('foo')->item(0); 17 $new_child = $document->createElement('qux'); 19 echo "New child replaces old child:\n" . $document->saveXML(); 23 $parent = $document->getElementsByTagName('spam')->item(0); 25 echo "Existing child is removed from tree:\n" . $document->saveXML(); 28 $new_child = $document->getElementsByTagName('spam')->item(0); 29 $parent = $document->getElementsByTagName('foo')->item(0); 31 echo "Children are inserted in order:\n" . $document->saveXML();
|
H A D | DOMNode_removeChild_error1.phpt | 7 $document = new DOMDocument(); 8 $real_parent = $document->createElement('real'); 9 $parent = $document->createElement('p'); 10 $child1 = $document->createElement('child1'); 11 $child2 = $document->createElement('child2');
|
H A D | DOMDocumentFragment_appendXML_basic_001.phpt | 10 $document = new DOMDocument; 11 $root = $document->createElement('root'); 12 $document->appendChild($root); 14 $fragment = $document->createDocumentFragment(); 18 print $document->saveXML();
|
H A D | DOMCharacterData_appendData_basic.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $cdata = $document->createElement('cdata'); 18 $cdatanode = $document->createCDATASection(''); 28 echo "\n" . $document->saveXML();
|
H A D | DOMComment_appendData_basic_Sullivan.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $comment = $document->createElement('comment'); 18 $commentnode = $document->createComment(''); 28 echo "\n" . $document->saveXML();
|
H A D | DOMText_appendData_basic.phpt | 11 $document = new DOMDocument; 12 $root = $document->createElement('root'); 13 $document->appendChild($root); 15 $text = $document->createElement('text'); 18 $textnode = $document->createTextNode(''); 28 echo "\n" . $document->saveXML();
|
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);
|
/PHP-8.2/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 …]
|