Home | History | Annotate | Download | only in dom

Lines Matching refs:doctype

234         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 = None
254 if doctype is not None:
255 doctype.entities._seq = []
256 doctype.notations._seq = []
319 self.document.doctype.entities._seq.append(node)
321 del self.document.doctype.entities._seq[-1]
325 self.document.doctype.notations._seq.append(node)
327 del self.document.doctype.notations._seq[-1]
576 # Takes a string for the doctype, subset string, and namespace attrs string.
583 <!DOCTYPE wrapper
626 doctype = self.originalDocument.doctype
628 if doctype:
629 subset = doctype.internalSubset or self._getDeclarations()
630 if doctype.publicId:
632 % (doctype.publicId, doctype.systemId))
633 elif doctype.systemId:
634 ident = 'SYSTEM "%s"' % doctype.systemId
655 doctype = self.context.ownerDocument.doctype
657 if doctype:
658 for i in range(doctype.notations.length):
659 notation = doctype.notations.item(i)
668 for i in range(doctype.entities.length):
669 entity = doctype.entities.item(i)