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 = []
323 self.document.doctype.entities._seq.append(node)
325 del self.document.doctype.entities._seq[-1]
329 self.document.doctype.notations._seq.append(node)
331 del self.document.doctype.notations._seq[-1]
583 # Takes a string for the doctype, subset string, and namespace attrs string.
590 <!DOCTYPE wrapper
633 doctype = self.originalDocument.doctype
635 if doctype:
636 subset = doctype.internalSubset or self._getDeclarations()
637 if doctype.publicId:
639 % (doctype.publicId, doctype.systemId))
640 elif doctype.systemId:
641 ident = 'SYSTEM "%s"' % doctype.systemId
662 doctype = self.context.ownerDocument.doctype
664 if doctype:
665 for i in range(doctype.notations.length):
666 notation = doctype.notations.item(i)
675 for i in range(doctype.entities.length):
676 entity = doctype.entities.item(i)