/php-src/ext/dom/ |
H A D | domimplementation.c | 56 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-src/ext/dom/tests/modern/spec/ |
H A D | appendChild_dtd_legacy.phpt | 16 $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 D | clone_dtd_node.phpt | 10 $dt1 = clone $dom->doctype; 11 var_dump($dt1 === $dom->doctype); 16 $dt2 = $dom->doctype->cloneNode(); 18 var_dump($dt2 === $dom->doctype);
|
H A D | pre_insertion_validation.phpt | 8 $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 D | Document_implementation_createDocument.phpt | 26 echo "--- With doctype ---\n"; 31 echo "--- With auto-adopting doctype ---\n"; 61 ["doctype"]=> 115 --- With doctype --- 119 --- With auto-adopting doctype ---
|
/php-src/ext/dom/tests/ |
H A D | DOMDocumentType_basic_001.phpt | 16 $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 D | DOMImplementation_createDocumentType_basic.phpt | 8 $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 D | DOMDocumentType_systemId_basic_001.phpt | 15 $doctype = $doc->doctype; 16 var_dump($doctype->systemId);
|
H A D | DOMDocumentType_publicId_basic_001.phpt | 15 $doctype = $doc->doctype; 16 var_dump($doctype->publicId);
|
H A D | bug79451.phpt | 2 Bug #79451 (Using DOMDocument->replaceChild on doctype causes double free) 11 $dom->replaceChild($dt, $dom->doctype); 13 var_dump($dom->doctype->name);
|
H A D | bug67081.phpt | 10 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 D | DOMDocumentType_entities_error_001.phpt | 10 $doctype = new DOMDocumentType(); 12 $doctype->entities;
|
H A D | DOMDocumentType_internalSubset_error_001.phpt | 10 $doctype = new DOMDocumentType(); 12 $doctype->internalSubset;
|
H A D | DOMDocumentType_name_error_001.phpt | 10 $doctype = new DOMDocumentType(); 12 $doctype->name;
|
H A D | DOMDocumentType_notations_error_001.phpt | 10 $doctype = new DOMDocumentType(); 12 $notations = $doctype->notations;
|
H A D | DOMDocumentType_publicId_error_001.phpt | 10 $doctype = new DOMDocumentType(); 12 $publicId = $doctype->publicId;
|
H A D | DOMDocumentType_systemId_error_001.phpt | 10 $doctype = new DOMDocumentType(); 12 $systemId = $doctype->systemId;
|
H A D | DOMNode_isEqualNode.phpt | 75 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 D | uaf_doctype_iterator.phpt | 2 UAF when removing doctype and iterating over the child nodes 18 $dom->removeChild($dom->doctype);
|
H A D | DOMNode_DOMNameSpaceNode_parentElement.phpt | 27 var_dump(get_class($dom->doctype->parentNode)); 28 var_dump($dom->doctype->parentElement);
|
/php-src/ext/dom/tests/modern/xml/ |
H A D | DTDNamedNodeMap.phpt | 18 $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-src/ext/dom/tests/delayed_freeing/ |
H A D | entity_declaration.phpt | 18 $entity1 = $doc->doctype->entities[0]; 19 $entity2 = $doc->doctype->entities[1]; 26 $doc->removeChild($doc->doctype);
|
H A D | notation_declaration.phpt | 15 $notation = $doc->doctype->notations[0]; 17 $doc->removeChild($doc->doctype);
|
/php-src/ext/dom/tests/modern/html/parser/ |
H A D | HTMLDocument_fromString_parser_warning_internal_error.phpt | 10 $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-src/ext/standard/ |
H A D | html.c | 52 #define LIMIT_ALL(all, doctype, charset) do { \ argument 823 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in traverse_for_entities() local 861 if (!unicode_cp_is_allowed(code, doctype) || in traverse_for_entities() 862 (doctype == ENT_HTML_DOC_HTML5 && code == 0x0D)) in traverse_for_entities() 954 assert(!(doctype == ENT_HTML_DOC_XML1 && all)); in determine_entity_table() 960 retval.table = (doctype == ENT_HTML_DOC_HTML401) ? in determine_entity_table() 1100 int doctype = flags & ENT_HTML_DOC_TYPE_MASK; in php_escape_html_entities_ex() local 1114 LIMIT_ALL(all, doctype, charset); in php_escape_html_entities_ex() 1443 int doctype; in PHP_FUNCTION() local 1462 doctype = flags & ENT_HTML_DOC_TYPE_MASK; in PHP_FUNCTION() [all …]
|