From 9d8ebf932f0df38bbfedf50addeeeafacf331bed Mon Sep 17 00:00:00 2001 From: byteface Date: Tue, 28 Jun 2022 20:58:47 +0100 Subject: [PATCH] Updates basefont to extend from HTMLBaseFontElement --- domonic/html.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/domonic/html.py b/domonic/html.py index ccd2944..3d4de49 100644 --- a/domonic/html.py +++ b/domonic/html.py @@ -488,10 +488,10 @@ def __update__( table = type("table", (HTMLTableElement,), {"name": "table"}) tr = type("tr", (Element,), {"name": "tr"}) td = type("td", (Element,), {"name": "td"}) -# form = type('form', (Element,), {'name': 'form'}) -class form(Element): +class form(HTMLFormElement): + def __init__(self, *args, **kwargs): new_kwargs = {} for k, v in kwargs.items(): @@ -628,7 +628,7 @@ def elements(self): # obsolete applet = type("applet", (Element,), {"name": "applet"}) # object = type('object', (Element,), {'name': 'object'}) -basefont = type("basefont", (Element,), {"name": "basefont"}) +basefont = type("basefont", (HTMLBaseFontElement,), {"name": "basefont"}) center = type("center", (Element,), {"name": "center"}) # dir = type('dir', (Element,), {'name': 'dir'}) embed = type("embed", (HTMLEmbedElement,), {"name": "embed"})