def __init__(self, *,
                 doctype: str = 'html',
                 default_class: type = HTMLElement,
                 **kwargs: Any) -> None:
        """Create new Document node.

        :arg str doctype: Document type of this document.
        :arg type default_class: Default class created by
            :py:meth:`createElement` method.
        """
        super().__init__()
        self.__window = Window(self)
        self._default_class = default_class

        self.__doctype = DocumentType(doctype, parent=self)
        self.__html = Html(parent=self)
        self.__head = Head(parent=self.documentElement)
        self.__body = Body(parent=self.documentElement)
def __init__ ( self , * , doctype : str = 'html' , default_class : type = HTMLElement , ** kwargs : Any ) -> None : super ( ) . __init__ ( ) self . __window = Window ( self ) self . _default_class = default_class self . __doctype = DocumentType ( doctype , parent = self ) self . __html = Html ( parent = self ) self . __head = Head ( parent = self . documentElement ) self . __body = Body ( parent = self . documentElement )
Create new Document node.

        :arg str doctype: Document type of this document.
        :arg type default_class: Default class created by
            :py:meth:`createElement` method.