Home
last modified time | relevance | path

Searched refs:doctype (Results 1 – 25 of 72) sorted by relevance

123

/PHP-8.4/ext/dom/
H A Ddomimplementation.c56 xmlDtd *doctype; in PHP_METHOD() local
103 if (doctype == NULL) { in PHP_METHOD()
141 (xmlNodePtr) doctype, in PHP_METHOD()
155 xmlDtdPtr doctype = NULL; in PHP_METHOD() local
215 if (doctype != NULL) { in PHP_METHOD()
217 doctype->parent = docp; in PHP_METHOD()
218 doctype->doc = docp; in PHP_METHOD()
226 if (doctype != NULL) { in PHP_METHOD()
229 doctype->doc = NULL; in PHP_METHOD()
256 xmlDtdPtr doctype = NULL; in PHP_METHOD() local
[all …]
/PHP-8.4/ext/dom/tests/modern/spec/
H A DappendChild_dtd_legacy.phpt16 $doctype = $original->doctype->cloneNode();
17 foreach ($doctype->entities as $entity) {
22 $doctype = $other->importNode($original->doctype);
23 $other->appendChild($doctype);
24 $other->appendChild($doctype);
H A Dclone_dtd_node.phpt10 $dt1 = clone $dom->doctype;
11 var_dump($dt1 === $dom->doctype);
16 $dt2 = $dom->doctype->cloneNode();
18 var_dump($dt2 === $dom->doctype);
H A Dpre_insertion_validation.phpt8 $doctype = $dom->doctype;
9 $dom->removeChild($doctype);
29 echo "--- Trying to insert doctype into not a document ---\n";
33 $element->append($doctype);
38 echo "--- Trying to insert doctype at the wrong place in a document ---\n";
41 $dom->append($doctype);
46 echo "--- Prepend doctype in a document should work ---\n";
48 $dom->prepend($doctype);
101 --- Trying to insert doctype into not a document ---
103 --- Trying to insert doctype at the wrong place in a document ---
[all …]
H A DDocument_implementation_createDocument.phpt26 echo "--- With doctype ---\n";
31 echo "--- With auto-adopting doctype ---\n";
61 ["doctype"]=>
115 --- With doctype ---
119 --- With auto-adopting doctype ---
/PHP-8.4/ext/dom/tests/
H A DDOMDocumentType_basic_001.phpt16 $doctype = $doc->doctype;
17 print "publicId: ".$doctype->publicId."\n";
18 print "systemId: ".$doctype->systemId."\n";
19 print "name: ".$doctype->name."\n";
20 print "internalSubset: ".$doctype->internalSubset."\n";
34 $doctype = $doc->doctype;
35 $entities = $doctype->entities;
38 $notations = $doctype->notations;
H A DDOMImplementation_createDocumentType_basic.phpt8 $doctype = $imp->createDocumentType("html",
11 $doc = $imp->createDocument(null, 'html', $doctype);
14 $doctype = $imp->createDocumentType("html");
15 $doc = $imp->createDocument(null, 'html', $doctype);
18 $doctype = $imp->createDocumentType("html", "", "");
19 $doc = $imp->createDocument(null, 'html', $doctype);
H A DDOMDocumentType_systemId_basic_001.phpt15 $doctype = $doc->doctype;
16 var_dump($doctype->systemId);
H A DDOMDocumentType_publicId_basic_001.phpt15 $doctype = $doc->doctype;
16 var_dump($doctype->publicId);
H A Dbug79451.phpt2 Bug #79451 (Using DOMDocument->replaceChild on doctype causes double free)
11 $dom->replaceChild($dt, $dom->doctype);
13 var_dump($dom->doctype->name);
H A Dbug67081.phpt10 var_dump($domDocument->doctype->internalSubset);
15 var_dump($domDocument->doctype->internalSubset);
20 var_dump($domDocument->doctype->internalSubset);
25 var_dump($domDocument->doctype->internalSubset);
H A DDOMDocumentType_entities_error_001.phpt10 $doctype = new DOMDocumentType();
12 $doctype->entities;
H A DDOMDocumentType_internalSubset_error_001.phpt10 $doctype = new DOMDocumentType();
12 $doctype->internalSubset;
H A DDOMDocumentType_name_error_001.phpt10 $doctype = new DOMDocumentType();
12 $doctype->name;
H A DDOMDocumentType_notations_error_001.phpt10 $doctype = new DOMDocumentType();
12 $notations = $doctype->notations;
H A DDOMDocumentType_publicId_error_001.phpt10 $doctype = new DOMDocumentType();
12 $publicId = $doctype->publicId;
H A DDOMDocumentType_systemId_error_001.phpt10 $doctype = new DOMDocumentType();
12 $systemId = $doctype->systemId;
H A DDOMNode_isEqualNode.phpt75 var_dump($dom1->doctype->isEqualNode(null));
78 echo "--- Test doctype ---\n";
80 var_dump($dom1->doctype->isEqualNode($dom1->doctype));
82 var_dump($dom1->doctype->isEqualNode($dom2->doctype));
84 var_dump($dom1->doctype->isEqualNode($dom2->doctype));
86 var_dump($dom1->doctype->isEqualNode($dom2->doctype));
88 var_dump($dom1->doctype->isEqualNode($dom2->doctype));
130 comparePairs($dom1->doctype->entities, $dom2->doctype->entities);
143 comparePairs($dom1->doctype->notations, $dom2->doctype->notations);
277 --- Test doctype ---
H A Duaf_doctype_iterator.phpt2 UAF when removing doctype and iterating over the child nodes
18 $dom->removeChild($dom->doctype);
H A DDOMNode_DOMNameSpaceNode_parentElement.phpt27 var_dump(get_class($dom->doctype->parentNode));
28 var_dump($dom->doctype->parentElement);
/PHP-8.4/ext/dom/tests/modern/xml/
H A DDTDNamedNodeMap.phpt18 $doctype = $dom->doctype;
20 var_dump($doctype);
22 var_dump($doctype->entities["test"]);
23 var_dump($doctype->entities["myimage"]);
25 var_dump($doctype->notations["GIF"]);
/PHP-8.4/ext/dom/tests/delayed_freeing/
H A Dentity_declaration.phpt18 $entity1 = $doc->doctype->entities[0];
19 $entity2 = $doc->doctype->entities[1];
26 $doc->removeChild($doc->doctype);
H A Dnotation_declaration.phpt15 $notation = $doc->doctype->notations[0];
17 $doc->removeChild($doc->doctype);
/PHP-8.4/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_fromString_parser_warning_internal_error.phpt10 $html = '<>x</> <!doctype html>';
29 string(71) "tree error doctype-token-in-body-mode in Entity, line: 1, column: 10-16"
40 string(71) "tree error doctype-token-in-body-mode in Entity, line: 1, column: 10-16"
/PHP-8.4/ext/standard/
H A Dhtml.c52 #define LIMIT_ALL(all, doctype, charset) do { \ argument
827 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in traverse_for_entities() local
865 if (!unicode_cp_is_allowed(code, doctype) || in traverse_for_entities()
866 (doctype == ENT_HTML_DOC_HTML5 && code == 0x0D)) in traverse_for_entities()
958 assert(!(doctype == ENT_HTML_DOC_XML1 && all)); in determine_entity_table()
964 retval.table = (doctype == ENT_HTML_DOC_HTML401) ? in determine_entity_table()
1104 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in php_escape_html_entities_ex() local
1118 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex()
1447 int doctype; in PHP_FUNCTION() local
1466 doctype = flags & ENT_HTML_DOC_TYPE_MASK; in PHP_FUNCTION()
[all …]

Completed in 26 milliseconds

123