Home
last modified time | relevance | path

Searched refs:doctype (Results 1 - 13 of 13) sorted by relevance

/third_party/python/Lib/xml/dom/
H A Dexpatbuilder.py234 if self.document.doctype:
238 self.document.doctype.internalSubset = subset
242 doctype = self.document.implementation.createDocumentType(
244 doctype.ownerDocument = self.document
245 _append_child(self.document, doctype)
246 self.document.doctype = doctype
247 if self._filter and self._filter.acceptNode(doctype) == FILTER_REJECT:
248 self.document.doctype = None
250 doctype
[all...]
H A Dminidom.py1433 def createDocument(self, namespaceURI, qualifiedName, doctype):
1434 if doctype and doctype.parentNode is not None:
1436 "doctype object owned by another DOM tree")
1441 and doctype is None)
1454 # Otherwise if doctype or namespaceURI are not None
1467 if doctype:
1468 doc.appendChild(doctype)
1471 if doctype:
1472 doctype
[all...]
/third_party/python/Lib/test/
H A Dtest_minidom.py29 def create_doc_without_doctype(doctype=None):
30 return getDOMImplementation().createDocument(None, "doc", doctype)
33 doctype = getDOMImplementation().createDocumentType("doc", None, None)
34 doctype.entities._seq = []
35 doctype.notations._seq = []
38 doctype.notations._seq.append(notation)
45 doctype.entities._seq.append(entity)
46 return doctype
49 doctype = create_nonempty_doctype()
50 doc = create_doc_without_doctype(doctype)
[all...]
H A Dtest_sax.py1409 self.doctype = None
1421 def startDTD(self, doctype, publicID, systemID):
1422 self.test_harness.doctype = doctype
1440 self.assertEqual(self.doctype, self.specified_doctype)
H A Dtest_xml_etree.py1257 # Test PUBLIC doctype.
3355 def doctype(self, name, pubid, system): member in TreeBuilderTest.test_doctype.DoctypeParser
3382 # cET also checks for 'close' and 'doctype', PyET does it only at need
3431 def doctype(self, *args, **kwargs): member in XMLParserTest.test_subclass_doctype.MyParserWithDoctype
3436 with self.assertWarnsRegex(RuntimeWarning, 'doctype'):
3446 def doctype(self, name, pubid, system): member in XMLParserTest.test_subclass_doctype.MyParserWithDoctype.DoctypeParser
/third_party/nghttp2/doc/
H A Dmkapiref.py133 doctype = line.split()[1]
134 if doctype == '@function':
136 elif doctype == '@functypedef':
138 elif doctype == '@struct' or doctype == '@union':
140 elif doctype == '@enum':
142 elif doctype == '@macro':
144 elif doctype == '@macrosection':
146 elif doctype == '@typedef':
/third_party/ffmpeg/doc/
H A Dt2h.pm197 $doctype, $bodytext, $copying_comment, $after_body_open,
202 $doctype, $bodytext, $copying_comment, $after_body_open,
207 $doctype, $bodytext, $copying_comment, $after_body_open,
/third_party/ltp/docparse/
H A Dtestinfo.pl506 :doctype: inline
/third_party/node/test/fixtures/wpt/encoding/streams/
H A Drealms.window.js15 iframe.srcdoc = `<!doctype html>
/third_party/ffmpeg/libavformat/
H A Dmatroskadec.c145 char *doctype; member
443 { EBML_ID_DOCTYPE, EBML_STR, 0, 0, offsetof(Ebml, doctype), { .s = "(none)" } },
1632 // probably valid EBML header but no recognized doctype in matroska_probe()
3024 if (ebml_parse(matroska, ebml_syntax, &ebml) || !ebml.doctype) { in matroska_read_header()
3034 "EBML version %"PRIu64", doctype %s, doc version %"PRIu64, in matroska_read_header()
3035 ebml.version, ebml.doctype, ebml.doctype_version); in matroska_read_header()
3041 "(EBML version %"PRIu64", doctype %s, doc version %"PRIu64")\n", in matroska_read_header()
3042 ebml.version, ebml.doctype, ebml.doctype_version); in matroska_read_header()
3045 if (!strcmp(ebml.doctype, matroska_doctypes[i])) in matroska_read_header()
3048 av_log(s, AV_LOG_WARNING, "Unknown EBML doctype ' in matroska_read_header()
[all...]
H A Dmatroskaenc.c2318 const char *doctype, int version) in ebml_write_header()
2326 ebml_writer_add_string(&writer, EBML_ID_DOCTYPE, doctype); in ebml_write_header()
2317 ebml_write_header(AVIOContext *pb, const char *doctype, int version) ebml_write_header() argument
/third_party/python/Lib/xml/etree/
H A DElementTree.py1674 self._doctype = [] # inside a doctype declaration
1676 # parse doctype contents
1696 if hasattr(self.target, "doctype"):
1697 self.target.doctype(name, pubid, system[1:-1])
1698 elif hasattr(self, "doctype"):
1700 "The doctype() method of XMLParser is ignored. "
1701 "Define doctype() method on the TreeBuilder target.",
/third_party/python/Modules/
H A D_elementtree.c3489 _Py_IDENTIFIER(doctype); in expat_start_doctype_handler()
3523 /* If the target has a handler for doctype, call it. */ in expat_start_doctype_handler()
3532 "The doctype() method of XMLParser is ignored. " in expat_start_doctype_handler()
3533 "Define doctype() method on the TreeBuilder target.", in expat_start_doctype_handler()
3704 self->handle_doctype = PyObject_GetAttrString(target, "doctype"); in _elementtree_XMLParser___init___impl()

Completed in 32 milliseconds