Home
last modified time | relevance | path

Searched refs:document (Results 26 – 50 of 454) sorted by relevance

12345678910>>...19

/php-src/ext/dom/lexbor/lexbor/dom/interfaces/
H A Dcomment.c12 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 Dprocessing_instruction.c12 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 Dshadow_root.c12 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 Ddocument_fragment.c12 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 Dxml_common.h27 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 Ddomimplementation.c247 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 DDOMAttr_ownerElement_error_001.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $document->removeChild($root);
H A DDOMCharacterData_substringData_basic_001.phpt11 $document = new DOMDocument;
12 $root = $document->createElement('root');
13 $document->appendChild($root);
15 $cdata = $document->createCDATASection('testfest');
H A DDOMCharacterData_deleteData_basic_001.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $cdata = $document->createCDATASection('test');
H A DDOMCharacterData_deleteData_error_002.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $cdata = $document->createCDATASection('test');
H A DDOMDocumentFragment_appendXML_error_003.phpt10 $document = new DOMDocument;
11 $root = $document->createElement('root');
12 $document->appendChild($root);
14 $fragment = $document->createDocumentFragment();
H A DDOMNode_replaceChild_error2.phpt7 $document = new DOMDocument();
8 $a = $document->createElement('a');
9 $b = $document->createElement('b');
10 $c = $document->createElement('c');
H A DDomNodeList_count.phpt10 $document = new DomDocument();
11 $root = $document->createElement('root');
12 $document->appendChild($root);
17 $item = $document->createElement('item');
H A DDOMNamedNodeMap_count.phpt10 $document = new DomDocument();
11 $root = $document->createElement('root');
12 $document->appendChild($root);
17 $item = $document->createElement('item');
H A DDOMDocument_adoptNode.phpt16 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 DDOMDocument_getElementsByTagName_liveness_tree_walk.phpt25 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 D0001-Patch-out-CSS-parser.patch8 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 Dbug48339.phpt7 $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 Dinitial.c142 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 Dbase_element.c12 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 Dbody_element.c12 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 Dembed_element.c12 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 Dfont_element.c12 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 Dform_element.c12 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 Dmarquee_element.c12 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()

Completed in 36 milliseconds

12345678910>>...19