diff --git a/docs/_build/doctrees/environment.pickle b/docs/_build/doctrees/environment.pickle index 9182e8dc..e48c92fc 100644 Binary files a/docs/_build/doctrees/environment.pickle and b/docs/_build/doctrees/environment.pickle differ diff --git a/docs/_build/html/.buildinfo b/docs/_build/html/.buildinfo index 8f385979..60288e37 100644 --- a/docs/_build/html/.buildinfo +++ b/docs/_build/html/.buildinfo @@ -1,4 +1,4 @@ # Sphinx build info version 1 # This file hashes the configuration used when building these files. When it is not found, a full rebuild will be done. -config: 0c62482183872e7badae4464a1df77ab +config: 03a955c0413c87b9d0f00793e486e8bf tags: 645f666f9bcd5a90fca523b33c5a78b7 diff --git a/docs/_build/html/_modules/domonic/CDN.html b/docs/_build/html/_modules/domonic/CDN.html index a477289c..05c0c75a 100644 --- a/docs/_build/html/_modules/domonic/CDN.html +++ b/docs/_build/html/_modules/domonic/CDN.html @@ -5,7 +5,7 @@ - domonic.CDN — domonic 0.7.0 documentation + domonic.CDN — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/JSON.html b/docs/_build/html/_modules/domonic/JSON.html index 6685edd2..5f2e5ded 100644 --- a/docs/_build/html/_modules/domonic/JSON.html +++ b/docs/_build/html/_modules/domonic/JSON.html @@ -5,7 +5,7 @@ - domonic.JSON — domonic 0.7.0 documentation + domonic.JSON — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/cmd.html b/docs/_build/html/_modules/domonic/cmd.html index d445ea9f..ebdb36e3 100644 --- a/docs/_build/html/_modules/domonic/cmd.html +++ b/docs/_build/html/_modules/domonic/cmd.html @@ -5,7 +5,7 @@ - domonic.cmd — domonic 0.7.0 documentation + domonic.cmd — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/constants/color.html b/docs/_build/html/_modules/domonic/constants/color.html index 8a332c5b..d521ff06 100644 --- a/docs/_build/html/_modules/domonic/constants/color.html +++ b/docs/_build/html/_modules/domonic/constants/color.html @@ -5,7 +5,7 @@ - domonic.constants.color — domonic 0.7.0 documentation + domonic.constants.color — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/constants/entities.html b/docs/_build/html/_modules/domonic/constants/entities.html index 6d3a5145..a6cb97c2 100644 --- a/docs/_build/html/_modules/domonic/constants/entities.html +++ b/docs/_build/html/_modules/domonic/constants/entities.html @@ -5,7 +5,7 @@ - domonic.constants.entities — domonic 0.7.0 documentation + domonic.constants.entities — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/constants/keyboard.html b/docs/_build/html/_modules/domonic/constants/keyboard.html index a895418c..e90f8e7f 100644 --- a/docs/_build/html/_modules/domonic/constants/keyboard.html +++ b/docs/_build/html/_modules/domonic/constants/keyboard.html @@ -5,7 +5,7 @@ - domonic.constants.keyboard — domonic 0.7.0 documentation + domonic.constants.keyboard — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/dQuery.html b/docs/_build/html/_modules/domonic/dQuery.html index 89e1d745..d0909063 100644 --- a/docs/_build/html/_modules/domonic/dQuery.html +++ b/docs/_build/html/_modules/domonic/dQuery.html @@ -5,7 +5,7 @@ - domonic.dQuery — domonic 0.7.0 documentation + domonic.dQuery — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/decorators.html b/docs/_build/html/_modules/domonic/decorators.html index a9d12c45..99f7a0e0 100644 --- a/docs/_build/html/_modules/domonic/decorators.html +++ b/docs/_build/html/_modules/domonic/decorators.html @@ -5,7 +5,7 @@ - domonic.decorators — domonic 0.7.0 documentation + domonic.decorators — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/dom.html b/docs/_build/html/_modules/domonic/dom.html index 5c672d7a..8bbca43b 100644 --- a/docs/_build/html/_modules/domonic/dom.html +++ b/docs/_build/html/_modules/domonic/dom.html @@ -5,7 +5,7 @@ - domonic.dom — domonic 0.7.0 documentation + domonic.dom — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/events.html b/docs/_build/html/_modules/domonic/events.html index 0799a46e..98b394c0 100644 --- a/docs/_build/html/_modules/domonic/events.html +++ b/docs/_build/html/_modules/domonic/events.html @@ -5,7 +5,7 @@ - domonic.events — domonic 0.7.0 documentation + domonic.events — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/html.html b/docs/_build/html/_modules/domonic/html.html index 1ef20aed..e27d5f90 100644 --- a/docs/_build/html/_modules/domonic/html.html +++ b/docs/_build/html/_modules/domonic/html.html @@ -5,7 +5,7 @@ - domonic.html — domonic 0.7.0 documentation + domonic.html — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/javascript.html b/docs/_build/html/_modules/domonic/javascript.html index 7b3e2ccd..6501a88d 100644 --- a/docs/_build/html/_modules/domonic/javascript.html +++ b/docs/_build/html/_modules/domonic/javascript.html @@ -5,7 +5,7 @@ - domonic.javascript — domonic 0.7.0 documentation + domonic.javascript — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/style.html b/docs/_build/html/_modules/domonic/style.html index b8eae688..9f934885 100644 --- a/docs/_build/html/_modules/domonic/style.html +++ b/docs/_build/html/_modules/domonic/style.html @@ -5,7 +5,7 @@ - domonic.style — domonic 0.7.0 documentation + domonic.style — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/terminal.html b/docs/_build/html/_modules/domonic/terminal.html index 66990d43..78141ca0 100644 --- a/docs/_build/html/_modules/domonic/terminal.html +++ b/docs/_build/html/_modules/domonic/terminal.html @@ -5,7 +5,7 @@ - domonic.terminal — domonic 0.7.0 documentation + domonic.terminal — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/utils.html b/docs/_build/html/_modules/domonic/utils.html index 4d1485bb..091446c9 100644 --- a/docs/_build/html/_modules/domonic/utils.html +++ b/docs/_build/html/_modules/domonic/utils.html @@ -5,7 +5,7 @@ - domonic.utils — domonic 0.7.0 documentation + domonic.utils — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/domonic/webapi/url.html b/docs/_build/html/_modules/domonic/webapi/url.html index 96534e4f..52e858af 100644 --- a/docs/_build/html/_modules/domonic/webapi/url.html +++ b/docs/_build/html/_modules/domonic/webapi/url.html @@ -5,7 +5,7 @@ - domonic.webapi.url — domonic 0.7.0 documentation + domonic.webapi.url — domonic 0.7.1 documentation diff --git a/docs/_build/html/_modules/index.html b/docs/_build/html/_modules/index.html index 6a23744a..87939fe8 100644 --- a/docs/_build/html/_modules/index.html +++ b/docs/_build/html/_modules/index.html @@ -5,7 +5,7 @@ - Overview: module code — domonic 0.7.0 documentation + Overview: module code — domonic 0.7.1 documentation diff --git a/docs/_build/html/_static/documentation_options.js b/docs/_build/html/_static/documentation_options.js index 9bdd13b3..bba8bff1 100644 --- a/docs/_build/html/_static/documentation_options.js +++ b/docs/_build/html/_static/documentation_options.js @@ -1,6 +1,6 @@ var DOCUMENTATION_OPTIONS = { URL_ROOT: document.getElementById("documentation_options").getAttribute('data-url_root'), - VERSION: '0.7.0', + VERSION: '0.7.1', LANGUAGE: 'None', COLLAPSE_INDEX: false, BUILDER: 'html', diff --git a/docs/_build/html/contribute.html b/docs/_build/html/contribute.html index 4d871c32..aa5289cf 100644 --- a/docs/_build/html/contribute.html +++ b/docs/_build/html/contribute.html @@ -6,7 +6,7 @@ - Contribute — domonic 0.7.0 documentation + Contribute — domonic 0.7.1 documentation diff --git a/docs/_build/html/genindex.html b/docs/_build/html/genindex.html index af7c7318..f7717427 100644 --- a/docs/_build/html/genindex.html +++ b/docs/_build/html/genindex.html @@ -5,7 +5,7 @@ - Index — domonic 0.7.0 documentation + Index — domonic 0.7.1 documentation diff --git a/docs/_build/html/index.html b/docs/_build/html/index.html index d84c4837..35f3ee3a 100644 --- a/docs/_build/html/index.html +++ b/docs/_build/html/index.html @@ -6,7 +6,7 @@ - Domonic: — domonic 0.7.0 documentation + Domonic: — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/CDN.html b/docs/_build/html/packages/CDN.html index f69231db..fe2b675a 100644 --- a/docs/_build/html/packages/CDN.html +++ b/docs/_build/html/packages/CDN.html @@ -6,7 +6,7 @@ - CDN — domonic 0.7.0 documentation + CDN — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/JSON.html b/docs/_build/html/packages/JSON.html index f365af65..1a743972 100644 --- a/docs/_build/html/packages/JSON.html +++ b/docs/_build/html/packages/JSON.html @@ -6,7 +6,7 @@ - JSON — domonic 0.7.0 documentation + JSON — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/Tween.html b/docs/_build/html/packages/Tween.html index 43a069c6..7c2eb072 100644 --- a/docs/_build/html/packages/Tween.html +++ b/docs/_build/html/packages/Tween.html @@ -6,7 +6,7 @@ - tween — domonic 0.7.0 documentation + tween — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/autodocs.html b/docs/_build/html/packages/autodocs.html index c7a3a465..e6e5e19b 100644 --- a/docs/_build/html/packages/autodocs.html +++ b/docs/_build/html/packages/autodocs.html @@ -6,7 +6,7 @@ - 🤖 autodocs — domonic 0.7.0 documentation + 🤖 autodocs — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/cmd.html b/docs/_build/html/packages/cmd.html index cfcf6495..5be7d706 100644 --- a/docs/_build/html/packages/cmd.html +++ b/docs/_build/html/packages/cmd.html @@ -6,7 +6,7 @@ - cmd — domonic 0.7.0 documentation + cmd — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/components.html b/docs/_build/html/packages/components.html index f96dc115..bede387e 100644 --- a/docs/_build/html/packages/components.html +++ b/docs/_build/html/packages/components.html @@ -6,7 +6,7 @@ - Templates and Components — domonic 0.7.0 documentation + Templates and Components — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/constants.html b/docs/_build/html/packages/constants.html index 4ee5376c..bfaab87e 100644 --- a/docs/_build/html/packages/constants.html +++ b/docs/_build/html/packages/constants.html @@ -6,7 +6,7 @@ - constants — domonic 0.7.0 documentation + constants — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/d3.html b/docs/_build/html/packages/d3.html index 4e526e42..21cb6f1a 100644 --- a/docs/_build/html/packages/d3.html +++ b/docs/_build/html/packages/d3.html @@ -6,7 +6,7 @@ - d3 — domonic 0.7.0 documentation + d3 — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/dQuery.html b/docs/_build/html/packages/dQuery.html index 3f0e5aeb..78a9ef2c 100644 --- a/docs/_build/html/packages/dQuery.html +++ b/docs/_build/html/packages/dQuery.html @@ -6,7 +6,7 @@ - dQuery — domonic 0.7.0 documentation + dQuery — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/decorators.html b/docs/_build/html/packages/decorators.html index 1526d43a..121aca6f 100644 --- a/docs/_build/html/packages/decorators.html +++ b/docs/_build/html/packages/decorators.html @@ -6,7 +6,7 @@ - decorators — domonic 0.7.0 documentation + decorators — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/dom.html b/docs/_build/html/packages/dom.html index 0bf26658..c7427a31 100644 --- a/docs/_build/html/packages/dom.html +++ b/docs/_build/html/packages/dom.html @@ -6,7 +6,7 @@ - dom — domonic 0.7.0 documentation + dom — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/events.html b/docs/_build/html/packages/events.html index 2cfb8390..84e46c3e 100644 --- a/docs/_build/html/packages/events.html +++ b/docs/_build/html/packages/events.html @@ -6,7 +6,7 @@ - events — domonic 0.7.0 documentation + events — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/geom.html b/docs/_build/html/packages/geom.html index ddcd65c0..1024f8a4 100644 --- a/docs/_build/html/packages/geom.html +++ b/docs/_build/html/packages/geom.html @@ -6,7 +6,7 @@ - geom — domonic 0.7.0 documentation + geom — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/html.html b/docs/_build/html/packages/html.html index 6018fca9..37a511be 100644 --- a/docs/_build/html/packages/html.html +++ b/docs/_build/html/packages/html.html @@ -6,7 +6,7 @@ - html — domonic 0.7.0 documentation + html — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/javascript.html b/docs/_build/html/packages/javascript.html index 176deb09..3d62a1c8 100644 --- a/docs/_build/html/packages/javascript.html +++ b/docs/_build/html/packages/javascript.html @@ -6,7 +6,7 @@ - javascript — domonic 0.7.0 documentation + javascript — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/servers.html b/docs/_build/html/packages/servers.html index 5c7b3723..b1cc9cf9 100644 --- a/docs/_build/html/packages/servers.html +++ b/docs/_build/html/packages/servers.html @@ -6,7 +6,7 @@ - 🚀 servers — domonic 0.7.0 documentation + 🚀 servers — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/sitemap.html b/docs/_build/html/packages/sitemap.html index 83ca5e99..fe0f08c3 100644 --- a/docs/_build/html/packages/sitemap.html +++ b/docs/_build/html/packages/sitemap.html @@ -6,7 +6,7 @@ - sitemap — domonic 0.7.0 documentation + sitemap — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/style.html b/docs/_build/html/packages/style.html index d2b4063c..9f50ba1b 100644 --- a/docs/_build/html/packages/style.html +++ b/docs/_build/html/packages/style.html @@ -6,7 +6,7 @@ - styles — domonic 0.7.0 documentation + styles — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/terminal.html b/docs/_build/html/packages/terminal.html index 604d85cf..676f3f42 100644 --- a/docs/_build/html/packages/terminal.html +++ b/docs/_build/html/packages/terminal.html @@ -6,7 +6,7 @@ - terminal — domonic 0.7.0 documentation + terminal — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/utils.html b/docs/_build/html/packages/utils.html index fe9bb4c8..14575123 100644 --- a/docs/_build/html/packages/utils.html +++ b/docs/_build/html/packages/utils.html @@ -6,7 +6,7 @@ - utils — domonic 0.7.0 documentation + utils — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/webapi.html b/docs/_build/html/packages/webapi.html index 2305d8d1..508edc48 100644 --- a/docs/_build/html/packages/webapi.html +++ b/docs/_build/html/packages/webapi.html @@ -6,7 +6,7 @@ - webapi — domonic 0.7.0 documentation + webapi — domonic 0.7.1 documentation diff --git a/docs/_build/html/packages/x3d.html b/docs/_build/html/packages/x3d.html index 1eee34cf..093df77b 100644 --- a/docs/_build/html/packages/x3d.html +++ b/docs/_build/html/packages/x3d.html @@ -6,7 +6,7 @@ - x3d — domonic 0.7.0 documentation + x3d — domonic 0.7.1 documentation diff --git a/docs/_build/html/py-modindex.html b/docs/_build/html/py-modindex.html index bf85d28f..34c806ab 100644 --- a/docs/_build/html/py-modindex.html +++ b/docs/_build/html/py-modindex.html @@ -5,7 +5,7 @@ - Python Module Index — domonic 0.7.0 documentation + Python Module Index — domonic 0.7.1 documentation diff --git a/docs/_build/html/search.html b/docs/_build/html/search.html index dbcb3bfa..b20f0cc2 100644 --- a/docs/_build/html/search.html +++ b/docs/_build/html/search.html @@ -5,7 +5,7 @@ - Search — domonic 0.7.0 documentation + Search — domonic 0.7.1 documentation diff --git a/domonic/dom.py b/domonic/dom.py index 8aa0cb67..5b27623a 100644 --- a/domonic/dom.py +++ b/domonic/dom.py @@ -831,6 +831,9 @@ def caretPositionFromPoint(self): class DocumentType(Node): + nodeType = Node.DOCUMENT_TYPE_NODE + __slots__ = ('name', 'publicId', 'systemId') + def __init__(self, name: str="html", publicId: str="", systemId: str="") -> None: self.name: str = name # A DOMString, eg "html" for . self.publicId: str = publicId # A DOMString, eg "-//W3C//DTD HTML 4.01//EN", empty string for HTML5. @@ -844,15 +847,19 @@ def internalSubset(self): else: return None - def notations(self): + def notations(self) -> NamedNodeMap: """ A NamedNodeMap with notations declared in the DTD. """ - raise NotImplementedError + nnm = NamedNodeMap() + for item in self.ownerDocument.args: + if item.nodeType == Node.NOTATION_NODE: + nnm.append(item) + return nnm - @property - def nodeType(self): - return Node.DOCUMENT_TYPE_NODE + # @property + # def nodeType(self): + # return Node.DOCUMENT_TYPE_NODE - def __str__(self): + def __str__(self) -> str: return f"" diff --git a/domonic/ext/__init__.py b/domonic/ext/__init__.py index 3d1b0645..f91a88c8 100644 --- a/domonic/ext/__init__.py +++ b/domonic/ext/__init__.py @@ -8,7 +8,7 @@ # HELLO WORLDS - hello world code for other libs -HELLO_SANIC = """ +HELLO_SANIC: str = """ from sanic import Sanic from sanic import response from domonic.html import * @@ -30,7 +30,7 @@ async def test(request): app.run() """ -HELLO_FLASK = """ +HELLO_FLASK: str = """ from flask import Flask from domonic.html import * @@ -50,7 +50,7 @@ def hello(): app.run() """ -HELLO_CHERRYPY = """ +HELLO_CHERRYPY: str = """ import cherrypy from domonic.html import * @@ -71,7 +71,7 @@ def index(self): """ -HELLO_BOTTLE = """ +HELLO_BOTTLE: str = """ from bottle import route, run from domonic.html import * @@ -89,7 +89,7 @@ def index(name): run(host='localhost', port=8080) """ -HELLO_AIOHTTP = """ +HELLO_AIOHTTP: str = """ from domonic.html import * from aiohttp import web @@ -106,7 +106,7 @@ async def handle(request): web.run_app(app) """ -HELLO_TORNADO = """ +HELLO_TORNADO: str = """ import tornado.ioloop import tornado.web from domonic.html import * @@ -132,7 +132,7 @@ def make_app(): tornado.ioloop.IOLoop.current().start() """ -HELLO_WERKZEUG = """ +HELLO_WERKZEUG: str = """ from werkzeug.wrappers import Request, Response from domonic.html import *