Home
last modified time | relevance | path

Searched refs:document (Results 1 – 25 of 473) sorted by relevance

12345678910>>...19

/PHP-8.4/ext/dom/lexbor/lexbor/dom/interfaces/
H A Ddocument.c81 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 Ddocument.h90 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 Ddocument_type.c17 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 Devent_target.c12 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 Dcdata_section.c12 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()
/PHP-8.4/ext/dom/lexbor/lexbor/html/interfaces/
H A Ddocument.h86 lxb_html_document_clean(lxb_html_document_t *document);
208 return document->head; in lxb_html_document_head_element()
214 return document->body; in lxb_html_document_body_element()
221 != &document->dom_document) in lxb_html_document_original_ref()
226 return lxb_dom_interface_document(document); in lxb_html_document_original_ref()
233 == &document->dom_document; in lxb_html_document_is_original()
237 lxb_html_document_mraw(lxb_html_document_t *document) in lxb_html_document_mraw() argument
252 document->opt = opt; in lxb_html_document_opt_set()
256 lxb_html_document_opt(lxb_html_document_t *document) in lxb_html_document_opt() argument
258 return document->opt; in lxb_html_document_opt()
[all …]
H A Ddocument.c129 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()
740 opt = document->opt; in lxb_html_document_parse()
758 document->opt = opt; in lxb_html_document_parse()
764 document->opt = opt; in lxb_html_document_parse()
829 document->opt = opt; in lxb_html_document_parse_fragment()
[all …]
/PHP-8.4/ext/dom/lexbor/lexbor/html/
H A Dinterface.c20 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 Dparser.c124 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()
350 parser->tree->document = NULL; in lxb_html_parse_fragment_chunk_destroy()
378 lxb_html_document_t *document; in lxb_html_parse_chunk_begin() local
384 document = lxb_html_document_interface_create(NULL); in lxb_html_parse_chunk_begin()
385 if (document == NULL) { in lxb_html_parse_chunk_begin()
389 return lxb_html_document_destroy(document); in lxb_html_parse_chunk_begin()
396 return lxb_html_document_destroy(document); in lxb_html_parse_chunk_begin()
[all …]
/PHP-8.4/ext/dom/lexbor/lexbor/dom/
H A Dinterface.c23 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 Dcollection.c12 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.4/ext/dom/tests/
H A Dgh10234.phpt7 $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 Dbug67440.phpt9 $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 DParentNode_append_fragment_text_coalesce.phpt7 $document = new DOMDocument();
8 $document->loadXML('<root/>');
10 $sut = $document->createDocumentFragment();
12 $textNode = $document->createTextNode("Node$i");
16 $document->documentElement->append($sut);
17 echo $document->saveXML();
H A DDOMNode_replaceChild_error1.phpt7 $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 DDOMCharacterData_data_basic_002.phpt11 $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 DDOMNode_replaceChild_basic.phpt10 $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 DDOMNode_removeChild_error1.phpt7 $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 DDOMDocumentFragment_appendXML_basic_001.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $fragment = $document->createDocumentFragment();
18 print $document->saveXML();
H A DDOMText_appendData_basic.phpt11 $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 DDOMCharacterData_appendData_basic.phpt11 $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 DDOMComment_appendData_basic_Sullivan.phpt11 $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();
/PHP-8.4/ext/dom/tests/modern/spec/
H A Dpre_insertion_validation.phpt11 echo "--- Trying to insert text node into the document ---\n";
50 echo "--- Trying to create multiple document roots ---\n";
97 --- Trying to insert text node into the document ---
98 Exception: Cannot insert text as a child of a document
99 Exception: Cannot insert text as a child of a document
100 Exception: Cannot insert text as a child of a document
101 --- Trying to insert doctype into not a document ---
102 Exception: Cannot insert a document type into anything other than a document
105 --- Prepend doctype in a document should work ---
106 --- Trying to create multiple document roots ---
[all …]
/PHP-8.4/ext/dom/parentnode/
H A Dtree.c265 || (php_dom_follow_spec_doc_ref(document) && ( in dom_is_pre_insert_valid_without_step_1()
276 if (php_dom_follow_spec_doc_ref(document)) { in dom_is_pre_insert_valid_without_step_1()
398 ZEND_ASSERT(newNodeObj->document == document); in dom_zvals_to_single_node()
522 if (!php_dom_follow_spec_doc_ref(document)) { in dom_insert_node_list_unchecked()
552 if (!php_dom_follow_spec_doc_ref(document)) { in dom_insert_node_list_unchecked()
579 php_dom_pre_insert(document, node, parent, NULL); in php_dom_node_append()
591 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_append()
600 php_dom_node_append(context->document, node, parentNode); in dom_parent_node_append()
617 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_prepend()
652 php_libxml_invalidate_node_list_cache(context->document); in dom_parent_node_after()
[all …]
/PHP-8.4/ext/dom/lexbor/patches/
H A D0006-Patch-out-unused-CSS-style-code.patch9 source/lexbor/html/interfaces/document.h | 2 --
34 diff --git a/source/lexbor/html/interfaces/document.c b/source/lexbor/html/interfaces/document.c
36 --- a/source/lexbor/html/interfaces/document.c
37 +++ b/source/lexbor/html/interfaces/document.c
75 lxb_html_document_css_destroy(document);
81 document->iframe_srcdoc = NULL;
85 lxb_html_document_css_clean(document);
215 diff --git a/source/lexbor/html/interfaces/document.h b/source/lexbor/html/interfaces/document.h
217 --- a/source/lexbor/html/interfaces/document.h
218 +++ b/source/lexbor/html/interfaces/document.h
[all …]

Completed in 71 milliseconds

12345678910>>...19