Home | History | Annotate | Download | only in test

Lines Matching refs:doctype

19           "<!DOCTYPE doc PUBLIC 'http://xml.python.org/public'"
29 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)
51 doctype.entities.item(0).ownerDocument = doc
52 doctype.notations.item(0).ownerDocument = doc
563 "<!DOCTYPE doc [\n"
575 "<!DOCTYPE doc [\n"
590 if doc.doctype is not None:
591 # check the doctype iff the original DOM maintained it
592 self.confirm(doc2.doctype.nodeType == Node.DOCUMENT_TYPE_NODE,
593 "testCloneDocumentDeep: doctype not a DOCUMENT_TYPE_NODE")
594 self.confirm(doc2.doctype.ownerDocument.isSameNode(doc2))
595 self.confirm(not doc.doctype.isSameNode(doc2.doctype))
598 doctype = create_nonempty_doctype()
599 clone = doctype.cloneNode(1)
601 and clone.nodeName == doctype.nodeName
602 and clone.name == doctype.name
603 and clone.publicId == doctype.publicId
604 and clone.systemId == doctype.systemId
605 and len(clone.entities) == len(doctype.entities)
607 and len(clone.notations) == len(doctype.notations)
610 for i in range(len(doctype.entities)):
611 se = doctype.entities.item(i)
622 for i in range(len(doctype.notations)):
623 sn = doctype.notations.item(i)
633 clone = doc.doctype.cloneNode(1)
637 doctype = create_nonempty_doctype()
638 clone = doctype.cloneNode(0)
640 and clone.nodeName == doctype.nodeName
641 and clone.name == doctype.name
642 and clone.publicId == doctype.publicId
643 and clone.systemId == doctype.systemId
652 clone = doc.doctype.cloneNode(0)
670 src.doctype, 0)
676 src.doctype, 1)
1253 "<!DOCTYPE doc [\n"