Skip to content

Commit

Permalink
Updates basefont to extend from HTMLBaseFontElement
Browse files Browse the repository at this point in the history
  • Loading branch information
byteface committed Jun 28, 2022
1 parent dc5fc8f commit 9d8ebf9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions domonic/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -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():
Expand Down Expand Up @@ -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"})
Expand Down

0 comments on commit 9d8ebf9

Please sign in to comment.