mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-20 10:47:35 -05:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
@@ -88,7 +88,8 @@ class TextElementBase(ElementBase):
|
||||
# available attributes, just the global and the most common ones.
|
||||
# If you need to access a specific attribute, you can always use the `_js.<attribute>`
|
||||
class a(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/a"""
|
||||
|
||||
tag = "a"
|
||||
|
||||
download = JSProperty("download")
|
||||
@@ -100,17 +101,20 @@ class a(TextElementBase):
|
||||
|
||||
|
||||
class abbr(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/abbr"""
|
||||
|
||||
tag = "abbr"
|
||||
|
||||
|
||||
class address(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/address"""
|
||||
|
||||
tag = "address"
|
||||
|
||||
|
||||
class area(ElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/area"""
|
||||
|
||||
tag = "area"
|
||||
|
||||
alt = JSProperty("alt")
|
||||
@@ -125,17 +129,20 @@ class area(ElementBase):
|
||||
|
||||
|
||||
class article(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/article"""
|
||||
|
||||
tag = "article"
|
||||
|
||||
|
||||
class aside(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/aside"""
|
||||
|
||||
tag = "aside"
|
||||
|
||||
|
||||
class audio(ElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/audio"""
|
||||
|
||||
tag = "audio"
|
||||
|
||||
autoplay = JSProperty("autoplay")
|
||||
@@ -150,24 +157,28 @@ class audio(ElementBase):
|
||||
|
||||
|
||||
class b(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/b"""
|
||||
|
||||
tag = "b"
|
||||
|
||||
|
||||
class blockquote(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/blockquote"""
|
||||
|
||||
tag = "blockquote"
|
||||
|
||||
cite = JSProperty("cite")
|
||||
|
||||
|
||||
class br(ElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/br"""
|
||||
|
||||
tag = "br"
|
||||
|
||||
|
||||
class button(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button"""
|
||||
|
||||
tag = "button"
|
||||
|
||||
autofocus = JSProperty("autofocus")
|
||||
@@ -184,7 +195,8 @@ class button(TextElementBase):
|
||||
|
||||
|
||||
class canvas(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/canvas"""
|
||||
|
||||
tag = "canvas"
|
||||
|
||||
height = JSProperty("height")
|
||||
@@ -192,39 +204,46 @@ class canvas(TextElementBase):
|
||||
|
||||
|
||||
class caption(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/caption"""
|
||||
|
||||
tag = "caption"
|
||||
|
||||
|
||||
class cite(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/cite"""
|
||||
|
||||
tag = "cite"
|
||||
|
||||
|
||||
class code(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/code"""
|
||||
|
||||
tag = "code"
|
||||
|
||||
|
||||
class data(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/data"""
|
||||
|
||||
tag = "data"
|
||||
|
||||
value = JSProperty("value")
|
||||
|
||||
|
||||
class datalist(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/datalist"""
|
||||
|
||||
tag = "datalist"
|
||||
|
||||
|
||||
class dd(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd"""
|
||||
|
||||
tag = "dd"
|
||||
|
||||
|
||||
class del_(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/del"""
|
||||
|
||||
tag = "del"
|
||||
|
||||
cite = JSProperty("cite")
|
||||
@@ -232,43 +251,50 @@ class del_(TextElementBase):
|
||||
|
||||
|
||||
class details(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details"""
|
||||
|
||||
tag = "details"
|
||||
|
||||
open = JSProperty("open")
|
||||
|
||||
|
||||
class dialog(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog"""
|
||||
|
||||
tag = "dialog"
|
||||
|
||||
open = JSProperty("open")
|
||||
|
||||
|
||||
class div(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/div"""
|
||||
|
||||
tag = "div"
|
||||
|
||||
|
||||
class dl(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl"""
|
||||
|
||||
tag = "dl"
|
||||
|
||||
value = JSProperty("value")
|
||||
|
||||
|
||||
class dt(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt"""
|
||||
|
||||
tag = "dt"
|
||||
|
||||
|
||||
class em(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/em"""
|
||||
|
||||
tag = "em"
|
||||
|
||||
|
||||
class embed(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/embed"""
|
||||
|
||||
tag = "embed"
|
||||
|
||||
height = JSProperty("height")
|
||||
@@ -278,7 +304,8 @@ class embed(TextElementBase):
|
||||
|
||||
|
||||
class fieldset(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/fieldset"""
|
||||
|
||||
tag = "fieldset"
|
||||
|
||||
disabled = JSProperty("disabled")
|
||||
@@ -287,22 +314,26 @@ class fieldset(TextElementBase):
|
||||
|
||||
|
||||
class figcaption(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figcaption"""
|
||||
|
||||
tag = "figcaption"
|
||||
|
||||
|
||||
class figure(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/figure"""
|
||||
|
||||
tag = "figure"
|
||||
|
||||
|
||||
class footer(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/footer"""
|
||||
|
||||
tag = "footer"
|
||||
|
||||
|
||||
class form(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/form"""
|
||||
|
||||
tag = "form"
|
||||
|
||||
accept_charset = JSProperty("accept-charset")
|
||||
@@ -318,57 +349,68 @@ class form(TextElementBase):
|
||||
|
||||
|
||||
class h1(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1 """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h1"""
|
||||
|
||||
tag = "h1"
|
||||
|
||||
|
||||
class h2(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2 """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h2"""
|
||||
|
||||
tag = "h2"
|
||||
|
||||
|
||||
class h3(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3 """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h3"""
|
||||
|
||||
tag = "h3"
|
||||
|
||||
|
||||
class h4(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4 """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h4"""
|
||||
|
||||
tag = "h4"
|
||||
|
||||
|
||||
class h5(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5 """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h5"""
|
||||
|
||||
tag = "h5"
|
||||
|
||||
|
||||
class h6(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6 """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/h6"""
|
||||
|
||||
tag = "h6"
|
||||
|
||||
|
||||
class header(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/header"""
|
||||
|
||||
tag = "header"
|
||||
|
||||
|
||||
class hgroup(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hgroup"""
|
||||
|
||||
tag = "hgroup"
|
||||
|
||||
|
||||
class hr(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/hr"""
|
||||
|
||||
tag = "hr"
|
||||
|
||||
|
||||
class i(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/i"""
|
||||
|
||||
tag = "i"
|
||||
|
||||
|
||||
class iframe(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/iframe"""
|
||||
|
||||
tag = "iframe"
|
||||
|
||||
allow = JSProperty("allow")
|
||||
@@ -384,7 +426,8 @@ class iframe(TextElementBase):
|
||||
|
||||
|
||||
class img(ElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/img"""
|
||||
|
||||
tag = "img"
|
||||
|
||||
alt = JSProperty("alt")
|
||||
@@ -402,7 +445,8 @@ class img(ElementBase):
|
||||
|
||||
# NOTE: Input is a reserved keyword in Python, so we use input_ instead
|
||||
class input_(ElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input"""
|
||||
|
||||
tag = "input"
|
||||
|
||||
accept = JSProperty("accept")
|
||||
@@ -441,38 +485,45 @@ class input_(ElementBase):
|
||||
|
||||
|
||||
class ins(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ins"""
|
||||
|
||||
tag = "ins"
|
||||
|
||||
cite = JSProperty("cite")
|
||||
datetime = JSProperty("datetime")
|
||||
|
||||
|
||||
class kbd(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/kbd"""
|
||||
|
||||
tag = "kbd"
|
||||
|
||||
|
||||
class label(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/label"""
|
||||
|
||||
tag = "label"
|
||||
|
||||
for_ = JSProperty("for")
|
||||
|
||||
|
||||
class legend(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/legend"""
|
||||
|
||||
tag = "legend"
|
||||
|
||||
|
||||
class li(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/li"""
|
||||
|
||||
tag = "li"
|
||||
|
||||
value = JSProperty("value")
|
||||
|
||||
|
||||
class link(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link"""
|
||||
|
||||
tag = "link"
|
||||
|
||||
as_ = JSProperty("as")
|
||||
@@ -492,29 +543,34 @@ class link(TextElementBase):
|
||||
|
||||
|
||||
class main(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/main"""
|
||||
|
||||
tag = "main"
|
||||
|
||||
|
||||
class map_(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/map"""
|
||||
|
||||
tag = "map"
|
||||
|
||||
name = JSProperty("name")
|
||||
|
||||
|
||||
class mark(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/mark"""
|
||||
|
||||
tag = "mark"
|
||||
|
||||
|
||||
class menu(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/menu"""
|
||||
|
||||
tag = "menu"
|
||||
|
||||
|
||||
class meter(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meter"""
|
||||
|
||||
tag = "meter"
|
||||
|
||||
form = JSProperty("form")
|
||||
@@ -527,12 +583,14 @@ class meter(TextElementBase):
|
||||
|
||||
|
||||
class nav(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/nav"""
|
||||
|
||||
tag = "nav"
|
||||
|
||||
|
||||
class object_(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/object"""
|
||||
|
||||
tag = "object"
|
||||
|
||||
data = JSProperty("data")
|
||||
@@ -543,8 +601,10 @@ class object_(TextElementBase):
|
||||
usemap = JSProperty("usemap")
|
||||
width = JSProperty("width")
|
||||
|
||||
|
||||
class ol(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ol"""
|
||||
|
||||
tag = "ol"
|
||||
|
||||
reversed = JSProperty("reversed")
|
||||
@@ -553,7 +613,8 @@ class ol(TextElementBase):
|
||||
|
||||
|
||||
class optgroup(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/optgroup"""
|
||||
|
||||
tag = "optgroup"
|
||||
|
||||
disabled = JSProperty("disabled")
|
||||
@@ -561,12 +622,14 @@ class optgroup(TextElementBase):
|
||||
|
||||
|
||||
class option(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/option"""
|
||||
|
||||
tag = "option"
|
||||
|
||||
|
||||
class output(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/output"""
|
||||
|
||||
tag = "output"
|
||||
|
||||
for_ = JSProperty("for")
|
||||
@@ -575,22 +638,26 @@ class output(TextElementBase):
|
||||
|
||||
|
||||
class p(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/p"""
|
||||
|
||||
tag = "p"
|
||||
|
||||
|
||||
class picture(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/picture"""
|
||||
|
||||
tag = "picture"
|
||||
|
||||
|
||||
class pre(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/pre"""
|
||||
|
||||
tag = "pre"
|
||||
|
||||
|
||||
class progress(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress"""
|
||||
|
||||
tag = "progress"
|
||||
|
||||
max = JSProperty("max")
|
||||
@@ -598,19 +665,22 @@ class progress(TextElementBase):
|
||||
|
||||
|
||||
class q(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/q"""
|
||||
|
||||
tag = "q"
|
||||
|
||||
cite = JSProperty("cite")
|
||||
|
||||
|
||||
class s(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/s"""
|
||||
|
||||
tag = "s"
|
||||
|
||||
|
||||
class script(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/script"""
|
||||
|
||||
tag = "script"
|
||||
|
||||
# Let's add async manually since it's a reserved keyword in Python
|
||||
@@ -628,22 +698,26 @@ class script(TextElementBase):
|
||||
|
||||
|
||||
class section(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section"""
|
||||
|
||||
tag = "section"
|
||||
|
||||
|
||||
class select(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/select"""
|
||||
|
||||
tag = "select"
|
||||
|
||||
|
||||
class small(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/small"""
|
||||
|
||||
tag = "small"
|
||||
|
||||
|
||||
class source(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/source"""
|
||||
|
||||
tag = "source"
|
||||
|
||||
media = JSProperty("media")
|
||||
@@ -654,17 +728,20 @@ class source(TextElementBase):
|
||||
|
||||
|
||||
class span(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/span"""
|
||||
|
||||
tag = "span"
|
||||
|
||||
|
||||
class strong(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/strong"""
|
||||
|
||||
tag = "strong"
|
||||
|
||||
|
||||
class style(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/style"""
|
||||
|
||||
tag = "style"
|
||||
|
||||
blocking = JSProperty("blocking")
|
||||
@@ -674,47 +751,56 @@ class style(TextElementBase):
|
||||
|
||||
|
||||
class sub(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sub"""
|
||||
|
||||
tag = "sub"
|
||||
|
||||
|
||||
class summary(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/summary"""
|
||||
|
||||
tag = "summary"
|
||||
|
||||
|
||||
class sup(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/sup"""
|
||||
|
||||
tag = "sup"
|
||||
|
||||
|
||||
class table(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/table"""
|
||||
|
||||
tag = "table"
|
||||
|
||||
|
||||
class tbody(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tbody"""
|
||||
|
||||
tag = "tbody"
|
||||
|
||||
|
||||
class td(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/td"""
|
||||
|
||||
tag = "td"
|
||||
|
||||
colspan = JSProperty("colspan")
|
||||
headers = JSProperty("headers")
|
||||
rowspan = JSProperty("rowspan")
|
||||
|
||||
|
||||
class template(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/template"""
|
||||
|
||||
tag = "template"
|
||||
|
||||
shadowrootmode = JSProperty("shadowrootmode")
|
||||
|
||||
|
||||
class textarea(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/textarea"""
|
||||
|
||||
tag = "textarea"
|
||||
|
||||
autocapitalize = JSProperty("autocapitalize")
|
||||
@@ -736,34 +822,40 @@ class textarea(TextElementBase):
|
||||
|
||||
|
||||
class tfoot(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tfoot"""
|
||||
|
||||
tag = "tfoot"
|
||||
|
||||
|
||||
class th(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/th"""
|
||||
|
||||
tag = "th"
|
||||
|
||||
|
||||
class thead(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/thead"""
|
||||
|
||||
tag = "thead"
|
||||
|
||||
|
||||
class time(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time"""
|
||||
|
||||
tag = "time"
|
||||
|
||||
datetime = JSProperty("datetime")
|
||||
|
||||
|
||||
class title(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title"""
|
||||
|
||||
tag = "title"
|
||||
|
||||
|
||||
class tr(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/tr"""
|
||||
|
||||
tag = "tr"
|
||||
|
||||
abbr = JSProperty("abbr")
|
||||
@@ -774,7 +866,8 @@ class tr(TextElementBase):
|
||||
|
||||
|
||||
class track(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/track"""
|
||||
|
||||
tag = "track"
|
||||
|
||||
default = JSProperty("default")
|
||||
@@ -785,22 +878,26 @@ class track(TextElementBase):
|
||||
|
||||
|
||||
class u(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u"""
|
||||
|
||||
tag = "u"
|
||||
|
||||
|
||||
class ul(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/ul"""
|
||||
|
||||
tag = "ul"
|
||||
|
||||
|
||||
class var(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/var"""
|
||||
|
||||
tag = "var"
|
||||
|
||||
|
||||
class video(TextElementBase):
|
||||
""" Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video """
|
||||
"""Ref: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video"""
|
||||
|
||||
tag = "video"
|
||||
|
||||
autoplay = JSProperty("autoplay")
|
||||
|
||||
Reference in New Issue
Block a user