from re import compile
import nerodia
[docs]class Container(object):
[docs] def element(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, self._extract_selector(*args, **kwargs))
[docs] def elements(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, self._extract_selector(*args, **kwargs))
@staticmethod
def _extract_selector(*args, **kwargs):
if len(args) == 2:
nerodia.logger.deprecate('Using ordered parameters to locate elements '
'({}, {})'.format(*args), '{{{}={}}}'.format(*args),
ids='selector_parameters')
selector = {args[0]: args[1]}
elif len(args) == 1 and isinstance(args[0], dict):
kwargs.update(args[0])
selector = kwargs
elif not args:
selector = kwargs
else:
raise ValueError('expected kwargs dict, got {}'.format(kwargs))
for k, v in selector.copy().items():
if isinstance(v, str) and v.startswith(r'/') and v.endswith(r'/'):
selector[k] = compile(v[1:-1])
return selector
# Plural of 'a' cannot be a method name, use link/links instead
[docs] def link(self, *args, **kwargs):
from .elements.html_elements import Anchor
return Anchor(self, dict(self._extract_selector(*args, **kwargs), tag_name='a'))
[docs] def links(self, *args, **kwargs):
from .elements.html_elements import AnchorCollection
return AnchorCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='a'))
[docs] def abbr(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='abbr'))
[docs] def abbrs(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='abbr'))
[docs] def address(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='address'))
[docs] def addresses(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='address'))
[docs] def area(self, *args, **kwargs):
from .elements.html_elements import Area
return Area(self, dict(self._extract_selector(*args, **kwargs), tag_name='area'))
[docs] def areas(self, *args, **kwargs):
from .elements.html_elements import AreaCollection
return AreaCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='area'))
[docs] def article(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='article'))
[docs] def articles(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='article'))
[docs] def aside(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='aside'))
[docs] def asides(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='aside'))
[docs] def audio(self, *args, **kwargs):
from .elements.html_elements import Audio
return Audio(self, dict(self._extract_selector(*args, **kwargs), tag_name='audio'))
[docs] def audios(self, *args, **kwargs):
from .elements.html_elements import AudioCollection
return AudioCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='audio'))
[docs] def b(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='b'))
[docs] def bs(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='b'))
[docs] def base(self, *args, **kwargs):
from .elements.html_elements import Base
return Base(self, dict(self._extract_selector(*args, **kwargs), tag_name='base'))
[docs] def bases(self, *args, **kwargs):
from .elements.html_elements import BaseCollection
return BaseCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='base'))
[docs] def bdi(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='bdi'))
[docs] def bdis(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='bdi'))
[docs] def bdo(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='bdo'))
[docs] def bdos(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='bdo'))
[docs] def blockquote(self, *args, **kwargs):
from .elements.html_elements import Quote
return Quote(self, dict(self._extract_selector(*args, **kwargs), tag_name='blockquote'))
[docs] def blockquotes(self, *args, **kwargs):
from .elements.html_elements import QuoteCollection
return QuoteCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='blockquote'))
[docs] def body(self, *args, **kwargs):
from .elements.html_elements import Body
return Body(self, dict(self._extract_selector(*args, **kwargs), tag_name='body'))
[docs] def bodys(self, *args, **kwargs):
from .elements.html_elements import BodyCollection
return BodyCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='body'))
[docs] def br(self, *args, **kwargs):
from .elements.html_elements import BR
return BR(self, dict(self._extract_selector(*args, **kwargs), tag_name='br'))
[docs] def brs(self, *args, **kwargs):
from .elements.html_elements import BRCollection
return BRCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='br'))
[docs] def canvas(self, *args, **kwargs):
from .elements.html_elements import Canvas
return Canvas(self, dict(self._extract_selector(*args, **kwargs), tag_name='canvas'))
[docs] def canvases(self, *args, **kwargs):
from .elements.html_elements import CanvasCollection
return CanvasCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='canvas'))
[docs] def caption(self, *args, **kwargs):
from .elements.html_elements import TableCaption
return TableCaption(self, dict(self._extract_selector(*args, **kwargs),
tag_name='caption'))
[docs] def captions(self, *args, **kwargs):
from .elements.html_elements import TableCaptionCollection
return TableCaptionCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='caption'))
[docs] def checkbox(self, *args, **kwargs):
from .elements.check_box import CheckBox
return CheckBox(self, dict(self._extract_selector(*args, **kwargs), tag_name='input',
type='checkbox',))
[docs] def checkboxes(self, *args, **kwargs):
from .elements.check_box import CheckBoxCollection
return CheckBoxCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='checkbox',))
[docs] def cite(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='cite'))
[docs] def cites(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='cite'))
[docs] def code(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='code'))
[docs] def codes(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='code'))
[docs] def col(self, *args, **kwargs):
from .elements.html_elements import TableCol
return TableCol(self, dict(self._extract_selector(*args, **kwargs), tag_name='col'))
[docs] def cols(self, *args, **kwargs):
from .elements.html_elements import TableColCollection
return TableColCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='col'))
[docs] def colgroup(self, *args, **kwargs):
from .elements.html_elements import TableCol
return TableCol(self, dict(self._extract_selector(*args, **kwargs), tag_name='colgroup'))
[docs] def colgroups(self, *args, **kwargs):
from .elements.html_elements import TableColCollection
return TableColCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='colgroup'))
[docs] def data(self, *args, **kwargs):
from .elements.html_elements import Data
return Data(self, dict(self._extract_selector(*args, **kwargs), tag_name='data'))
[docs] def datas(self, *args, **kwargs):
from .elements.html_elements import DataCollection
return DataCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='data'))
[docs] def datalist(self, *args, **kwargs):
from .elements.html_elements import DataList
return DataList(self, dict(self._extract_selector(*args, **kwargs), tag_name='datalist'))
[docs] def datalists(self, *args, **kwargs):
from .elements.html_elements import DataListCollection
return DataListCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='datalist'))
[docs] def date_field(self, *args, **kwargs):
from .elements.date_field import DateField
return DateField(self, dict(self._extract_selector(*args, **kwargs), tag_name='input',
type='date'))
[docs] def date_fields(self, *args, **kwargs):
from .elements.date_field import DateFieldCollection
return DateFieldCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='date'))
[docs] def date_time_field(self, *args, **kwargs):
from .elements.date_time_field import DateTimeField
return DateTimeField(self, dict(self._extract_selector(*args, **kwargs), tag_name='input',
type='datetime-local'))
[docs] def date_time_fields(self, *args, **kwargs):
from .elements.date_time_field import DateTimeFieldCollection
return DateTimeFieldCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='datetime-local'))
[docs] def dd(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='dd'))
[docs] def dds(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='dd'))
# 'del' is an invalid method name, use delete/deletes instead
[docs] def delete(self, *args, **kwargs):
from .elements.html_elements import Mod
return Mod(self, dict(self._extract_selector(*args, **kwargs), tag_name='del'))
[docs] def deletes(self, *args, **kwargs):
from .elements.html_elements import ModCollection
return ModCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='del'))
[docs] def details(self, *args, **kwargs):
from .elements.html_elements import Details
return Details(self, dict(self._extract_selector(*args, **kwargs), tag_name='details'))
[docs] def detailses(self, *args, **kwargs):
from .elements.html_elements import DetailsCollection
return DetailsCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='details'))
[docs] def dfn(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='dfn'))
[docs] def dfns(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='dfn'))
[docs] def dialog(self, *args, **kwargs):
from .elements.html_elements import Dialog
return Dialog(self, dict(self._extract_selector(*args, **kwargs), tag_name='dialog'))
[docs] def dialogs(self, *args, **kwargs):
from .elements.html_elements import DialogCollection
return DialogCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='dialog'))
[docs] def div(self, *args, **kwargs):
from .elements.html_elements import Div
return Div(self, dict(self._extract_selector(*args, **kwargs), tag_name='div'))
[docs] def divs(self, *args, **kwargs):
from .elements.html_elements import DivCollection
return DivCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='div'))
[docs] def dl(self, *args, **kwargs):
from .elements.d_list import DList
return DList(self, dict(self._extract_selector(*args, **kwargs), tag_name='dl'))
[docs] def dls(self, *args, **kwargs):
from .elements.html_elements import DListCollection
return DListCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='dl'))
[docs] def dt(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='dt'))
[docs] def dts(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='dt'))
[docs] def em(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='em'))
[docs] def ems(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='em'))
[docs] def embed(self, *args, **kwargs):
from .elements.html_elements import Embed
return Embed(self, dict(self._extract_selector(*args, **kwargs), tag_name='embed'))
[docs] def embeds(self, *args, **kwargs):
from .elements.html_elements import EmbedCollection
return EmbedCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='embed'))
[docs] def fieldset(self, *args, **kwargs):
from .elements.html_elements import FieldSet
return FieldSet(self, dict(self._extract_selector(*args, **kwargs), tag_name='fieldset'))
field_set = fieldset
[docs] def fieldsets(self, *args, **kwargs):
from .elements.html_elements import FieldSetCollection
return FieldSetCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='fieldset'))
field_sets = fieldsets
[docs] def figcaption(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs),
tag_name='figcaption'))
[docs] def figcaptions(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='figcaption'))
[docs] def file_field(self, *args, **kwargs):
from .elements.file_field import FileField
return FileField(self, dict(self._extract_selector(*args, **kwargs), tag_name='input',
type='file'))
[docs] def file_fields(self, *args, **kwargs):
from .elements.file_field import FileFieldCollection
return FileFieldCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='file'))
[docs] def font(self, *args, **kwargs):
from .elements.font import Font
return Font(self, dict(self._extract_selector(*args, **kwargs), tag_name='font'))
[docs] def fonts(self, *args, **kwargs):
from .elements.html_elements import FontCollection
return FontCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='font'))
[docs] def frame(self, *args, **kwargs):
from .elements.i_frame import Frame
return Frame(self, dict(self._extract_selector(*args, **kwargs), tag_name='frame'))
[docs] def frames(self, *args, **kwargs):
from .elements.i_frame import FrameCollection
return FrameCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='frame'))
[docs] def frameset(self, *args, **kwargs):
from .elements.html_elements import FrameSet
return FrameSet(self, dict(self._extract_selector(*args, **kwargs), tag_name='frameset'))
[docs] def framesets(self, *args, **kwargs):
from .elements.html_elements import FrameSetCollection
return FrameSetCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='frameset'))
[docs] def h1(self, *args, **kwargs):
from .elements.html_elements import Heading
return Heading(self, dict(self._extract_selector(*args, **kwargs), tag_name='h1'))
[docs] def h1s(self, *args, **kwargs):
from .elements.html_elements import HeadingCollection
return HeadingCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='h1'))
[docs] def h2(self, *args, **kwargs):
from .elements.html_elements import Heading
return Heading(self, dict(self._extract_selector(*args, **kwargs), tag_name='h2'))
[docs] def h2s(self, *args, **kwargs):
from .elements.html_elements import HeadingCollection
return HeadingCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='h2'))
[docs] def h3(self, *args, **kwargs):
from .elements.html_elements import Heading
return Heading(self, dict(self._extract_selector(*args, **kwargs), tag_name='h3'))
[docs] def h3s(self, *args, **kwargs):
from .elements.html_elements import HeadingCollection
return HeadingCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='h3'))
[docs] def h4(self, *args, **kwargs):
from .elements.html_elements import Heading
return Heading(self, dict(self._extract_selector(*args, **kwargs), tag_name='h4'))
[docs] def h4s(self, *args, **kwargs):
from .elements.html_elements import HeadingCollection
return HeadingCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='h4'))
[docs] def h5(self, *args, **kwargs):
from .elements.html_elements import Heading
return Heading(self, dict(self._extract_selector(*args, **kwargs), tag_name='h5'))
[docs] def h5s(self, *args, **kwargs):
from .elements.html_elements import HeadingCollection
return HeadingCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='h5'))
[docs] def h6(self, *args, **kwargs):
from .elements.html_elements import Heading
return Heading(self, dict(self._extract_selector(*args, **kwargs), tag_name='h6'))
[docs] def h6s(self, *args, **kwargs):
from .elements.html_elements import HeadingCollection
return HeadingCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='h6'))
[docs] def head(self, *args, **kwargs):
from .elements.html_elements import Head
return Head(self, dict(self._extract_selector(*args, **kwargs), tag_name='head'))
[docs] def heads(self, *args, **kwargs):
from .elements.html_elements import HeadCollection
return HeadCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='head'))
[docs] def hgroup(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='hgroup'))
[docs] def hgroups(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='hgroup'))
[docs] def hidden(self, *args, **kwargs):
from .elements.hidden import Hidden
return Hidden(self, dict(self._extract_selector(*args, **kwargs), tag_name='input',
type='hidden'))
[docs] def hiddens(self, *args, **kwargs):
from .elements.hidden import HiddenCollection
return HiddenCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='hidden'))
[docs] def hr(self, *args, **kwargs):
from .elements.html_elements import HR
return HR(self, dict(self._extract_selector(*args, **kwargs), tag_name='hr'))
[docs] def hrs(self, *args, **kwargs):
from .elements.html_elements import HRCollection
return HRCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='hr'))
[docs] def html(self, *args, **kwargs):
from .elements.html_elements import Html
return Html(self, dict(self._extract_selector(*args, **kwargs), tag_name='html'))
[docs] def htmls(self, *args, **kwargs):
from .elements.html_elements import HtmlCollection
return HtmlCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='html'))
# Plural of 'i' cannot be a method name, use ital/itals instead
[docs] def ital(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='i'))
[docs] def itals(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='i'))
[docs] def iframe(self, *args, **kwargs):
from .elements.i_frame import IFrame
return IFrame(self, dict(self._extract_selector(*args, **kwargs), tag_name='iframe'))
[docs] def iframes(self, *args, **kwargs):
from .elements.html_elements import IFrameCollection
return IFrameCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='iframe'))
[docs] def img(self, *args, **kwargs):
from .elements.image import Image
return Image(self, dict(self._extract_selector(*args, **kwargs), tag_name='img'))
image = img
[docs] def imgs(self, *args, **kwargs):
from .elements.html_elements import ImageCollection
return ImageCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='img'))
images = imgs
[docs] def ins(self, *args, **kwargs):
from .elements.html_elements import Mod
return Mod(self, dict(self._extract_selector(*args, **kwargs), tag_name='ins'))
[docs] def inses(self, *args, **kwargs):
from .elements.html_elements import ModCollection
return ModCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='ins'))
[docs] def kbd(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='kbd'))
[docs] def kbds(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='kbd'))
[docs] def label(self, *args, **kwargs):
from .elements.html_elements import Label
return Label(self, dict(self._extract_selector(*args, **kwargs), tag_name='label'))
[docs] def labels(self, *args, **kwargs):
from .elements.html_elements import LabelCollection
return LabelCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='label'))
[docs] def legend(self, *args, **kwargs):
from .elements.html_elements import Legend
return Legend(self, dict(self._extract_selector(*args, **kwargs), tag_name='legend'))
[docs] def legends(self, *args, **kwargs):
from .elements.html_elements import LegendCollection
return LegendCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='legend'))
[docs] def li(self, *args, **kwargs):
from .elements.html_elements import LI
return LI(self, dict(self._extract_selector(*args, **kwargs), tag_name='li'))
[docs] def lis(self, *args, **kwargs):
from .elements.html_elements import LICollection
return LICollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='li'))
[docs] def main(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='main'))
[docs] def mains(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='main'))
[docs] def map(self, *args, **kwargs):
from .elements.html_elements import Map
return Map(self, dict(self._extract_selector(*args, **kwargs), tag_name='map'))
[docs] def maps(self, *args, **kwargs):
from .elements.html_elements import MapCollection
return MapCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='map'))
[docs] def mark(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='mark'))
[docs] def marks(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='mark'))
[docs] def meter(self, *args, **kwargs):
from .elements.html_elements import Meter
return Meter(self, dict(self._extract_selector(*args, **kwargs), tag_name='meter'))
[docs] def meters(self, *args, **kwargs):
from .elements.html_elements import MeterCollection
return MeterCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='meter'))
[docs] def nav(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='nav'))
[docs] def navs(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='nav'))
[docs] def noscript(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='noscript'))
[docs] def noscripts(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='noscript'))
[docs] def object(self, *args, **kwargs):
from .elements.html_elements import Object
return Object(self, dict(self._extract_selector(*args, **kwargs), tag_name='object'))
[docs] def objects(self, *args, **kwargs):
from .elements.html_elements import ObjectCollection
return ObjectCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='object'))
[docs] def ol(self, *args, **kwargs):
from .elements.list import OList
return OList(self, dict(self._extract_selector(*args, **kwargs), tag_name='ol'))
[docs] def ols(self, *args, **kwargs):
from .elements.html_elements import OListCollection
return OListCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='ol'))
[docs] def optgroup(self, *args, **kwargs):
from .elements.html_elements import OptGroup
return OptGroup(self, dict(self._extract_selector(*args, **kwargs), tag_name='optgroup'))
[docs] def optgroups(self, *args, **kwargs):
from .elements.html_elements import OptGroupCollection
return OptGroupCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='optgroup'))
[docs] def option(self, *args, **kwargs):
from .elements.option import Option
return Option(self, dict(self._extract_selector(*args, **kwargs), tag_name='option'))
[docs] def options(self, *args, **kwargs):
from .elements.html_elements import OptionCollection
return OptionCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='option'))
[docs] def output(self, *args, **kwargs):
from .elements.html_elements import Output
return Output(self, dict(self._extract_selector(*args, **kwargs), tag_name='output'))
[docs] def outputs(self, *args, **kwargs):
from .elements.html_elements import OutputCollection
return OutputCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='output'))
[docs] def p(self, *args, **kwargs):
from .elements.html_elements import Paragraph
return Paragraph(self, dict(self._extract_selector(*args, **kwargs), tag_name='p'))
[docs] def ps(self, *args, **kwargs):
from .elements.html_elements import ParagraphCollection
return ParagraphCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='p'))
[docs] def param(self, *args, **kwargs):
from .elements.html_elements import Param
return Param(self, dict(self._extract_selector(*args, **kwargs), tag_name='param'))
[docs] def params(self, *args, **kwargs):
from .elements.html_elements import ParamCollection
return ParamCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='param'))
[docs] def pre(self, *args, **kwargs):
from .elements.html_elements import Pre
return Pre(self, dict(self._extract_selector(*args, **kwargs), tag_name='pre'))
[docs] def pres(self, *args, **kwargs):
from .elements.html_elements import PreCollection
return PreCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='pre'))
[docs] def progress(self, *args, **kwargs):
from .elements.html_elements import Progress
return Progress(self, dict(self._extract_selector(*args, **kwargs), tag_name='progress'))
[docs] def progresses(self, *args, **kwargs):
from .elements.html_elements import ProgressCollection
return ProgressCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='progress'))
[docs] def q(self, *args, **kwargs):
from .elements.html_elements import Quote
return Quote(self, dict(self._extract_selector(*args, **kwargs), tag_name='q'))
[docs] def qs(self, *args, **kwargs):
from .elements.html_elements import QuoteCollection
return QuoteCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='q'))
[docs] def radio(self, *args, **kwargs):
from .elements.radio import Radio
return Radio(self, dict(self._extract_selector(*args, **kwargs), tag_name='input',
type='radio'))
[docs] def radios(self, *args, **kwargs):
from .elements.radio import RadioCollection
return RadioCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='radio'))
[docs] def radio_set(self, *args, **kwargs):
from .elements.radio_set import RadioSet
return RadioSet(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input', type='radio'))
[docs] def rp(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='rp'))
[docs] def rps(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='rp'))
[docs] def rt(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='rt'))
[docs] def rts(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='rt'))
[docs] def ruby(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='ruby'))
[docs] def rubies(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='ruby'))
[docs] def s(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='s'))
[docs] def ss(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='s'))
[docs] def samp(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='samp'))
[docs] def samps(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='samp'))
[docs] def script(self, *args, **kwargs):
from .elements.html_elements import Script
return Script(self, dict(self._extract_selector(*args, **kwargs), tag_name='script'))
[docs] def scripts(self, *args, **kwargs):
from .elements.html_elements import ScriptCollection
return ScriptCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='script'))
[docs] def section(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='section'))
[docs] def sections(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='section'))
[docs] def select(self, *args, **kwargs):
from .elements.select import Select
return Select(self, dict(self._extract_selector(*args, **kwargs), tag_name='select'))
select_list = select
[docs] def selects(self, *args, **kwargs):
from .elements.html_elements import SelectCollection
return SelectCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='select'))
select_lists = selects
[docs] def small(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='small'))
[docs] def smalls(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='small'))
[docs] def source(self, *args, **kwargs):
from .elements.html_elements import Source
return Source(self, dict(self._extract_selector(*args, **kwargs), tag_name='source'))
[docs] def sources(self, *args, **kwargs):
from .elements.html_elements import SourceCollection
return SourceCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='source'))
[docs] def span(self, *args, **kwargs):
from .elements.html_elements import Span
return Span(self, dict(self._extract_selector(*args, **kwargs), tag_name='span'))
[docs] def spans(self, *args, **kwargs):
from .elements.html_elements import SpanCollection
return SpanCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='span'))
[docs] def strong(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='strong'))
[docs] def strongs(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='strong'))
[docs] def style(self, *args, **kwargs):
from .elements.html_elements import Style
return Style(self, dict(self._extract_selector(*args, **kwargs), tag_name='style'))
[docs] def styles(self, *args, **kwargs):
from .elements.html_elements import StyleCollection
return StyleCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='style'))
[docs] def sub(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='sub'))
[docs] def subs(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='sub'))
[docs] def summary(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='summary'))
[docs] def summaries(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='summary'))
[docs] def sup(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='sup'))
[docs] def sups(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='sup'))
[docs] def table(self, *args, **kwargs):
from .elements.table import Table
return Table(self, dict(self._extract_selector(*args, **kwargs), tag_name='table'))
[docs] def tables(self, *args, **kwargs):
from .elements.html_elements import TableCollection
return TableCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='table'))
[docs] def tbody(self, *args, **kwargs):
from .elements.table_section import TableSection
return TableSection(self, dict(self._extract_selector(*args, **kwargs), tag_name='tbody'))
[docs] def tbodys(self, *args, **kwargs):
from .elements.html_elements import TableSectionCollection
return TableSectionCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='tbody'))
[docs] def td(self, *args, **kwargs):
from .elements.table_data_cell import TableDataCell
return TableDataCell(self, dict(self._extract_selector(*args, **kwargs), tag_name='td'))
[docs] def tds(self, *args, **kwargs):
from .elements.html_elements import TableDataCellCollection
return TableDataCellCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='td'))
[docs] def template(self, *args, **kwargs):
from .elements.html_elements import Template
return Template(self, dict(self._extract_selector(*args, **kwargs), tag_name='template'))
[docs] def templates(self, *args, **kwargs):
from .elements.html_elements import TemplateCollection
return TemplateCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='template'))
[docs] def textarea(self, *args, **kwargs):
from .elements.text_area import TextArea
return TextArea(self, dict(self._extract_selector(*args, **kwargs), tag_name='textarea'))
[docs] def textareas(self, *args, **kwargs):
from .elements.html_elements import TextAreaCollection
return TextAreaCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='textarea'))
[docs] def text_field(self, *args, **kwargs):
from .elements.text_field import TextField
return TextField(self, dict(self._extract_selector(*args, **kwargs), tag_name='input'))
[docs] def text_fields(self, *args, **kwargs):
from .elements.text_field import TextFieldCollection
return TextFieldCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='input'))
[docs] def th(self, *args, **kwargs):
from .elements.html_elements import TableHeaderCell
return TableHeaderCell(self, dict(self._extract_selector(*args, **kwargs), tag_name='th'))
[docs] def ths(self, *args, **kwargs):
from .elements.html_elements import TableHeaderCellCollection
return TableHeaderCellCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='th'))
[docs] def thead(self, *args, **kwargs):
from .elements.table_section import TableSection
return TableSection(self, dict(self._extract_selector(*args, **kwargs), tag_name='thead'))
[docs] def theads(self, *args, **kwargs):
from .elements.html_elements import TableSectionCollection
return TableSectionCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='thead'))
[docs] def time(self, *args, **kwargs):
from .elements.html_elements import Time
return Time(self, dict(self._extract_selector(*args, **kwargs), tag_name='time'))
[docs] def times(self, *args, **kwargs):
from .elements.html_elements import TimeCollection
return TimeCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='time'))
[docs] def title(self, *args, **kwargs):
from .elements.html_elements import Title
return Title(self, dict(self._extract_selector(*args, **kwargs), tag_name='title'))
[docs] def titles(self, *args, **kwargs):
from .elements.html_elements import TitleCollection
return TitleCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='title'))
[docs] def tr(self, *args, **kwargs):
from .elements.table_row import TableRow
return TableRow(self, dict(self._extract_selector(*args, **kwargs), tag_name='tr'))
[docs] def trs(self, *args, **kwargs):
from .elements.html_elements import TableRowCollection
return TableRowCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='tr'))
[docs] def track(self, *args, **kwargs):
from .elements.html_elements import Track
return Track(self, dict(self._extract_selector(*args, **kwargs), tag_name='track'))
[docs] def tracks(self, *args, **kwargs):
from .elements.html_elements import TrackCollection
return TrackCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='track'))
[docs] def u(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='u'))
[docs] def us(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='u'))
[docs] def ul(self, *args, **kwargs):
from .elements.list import UList
return UList(self, dict(self._extract_selector(*args, **kwargs), tag_name='ul'))
[docs] def uls(self, *args, **kwargs):
from .elements.html_elements import UListCollection
return UListCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='ul'))
[docs] def var(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='var'))
[docs] def vars(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='var'))
[docs] def video(self, *args, **kwargs):
from .elements.html_elements import Video
return Video(self, dict(self._extract_selector(*args, **kwargs), tag_name='video'))
[docs] def videos(self, *args, **kwargs):
from .elements.html_elements import VideoCollection
return VideoCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='video'))
[docs] def wbr(self, *args, **kwargs):
from .elements.html_elements import HTMLElement
return HTMLElement(self, dict(self._extract_selector(*args, **kwargs), tag_name='wbr'))
[docs] def wbrs(self, *args, **kwargs):
from .elements.html_elements import HTMLElementCollection
return HTMLElementCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='wbr'))
# SVG
[docs] def circle(self, *args, **kwargs):
from .elements.svg_elements import Circle
return Circle(self, dict(self._extract_selector(*args, **kwargs), tag_name='circle'))
[docs] def circles(self, *args, **kwargs):
from .elements.svg_elements import CircleCollection
return CircleCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='circle'))
[docs] def defs(self, *args, **kwargs):
from .elements.svg_elements import Defs
return Defs(self, dict(self._extract_selector(*args, **kwargs), tag_name='defs'))
[docs] def defss(self, *args, **kwargs):
from .elements.svg_elements import DefsCollection
return DefsCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='defs'))
[docs] def desc(self, *args, **kwargs):
from .elements.svg_elements import Desc
return Desc(self, dict(self._extract_selector(*args, **kwargs), tag_name='desc'))
[docs] def descs(self, *args, **kwargs):
from .elements.svg_elements import DescCollection
return DescCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='desc'))
[docs] def ellipse(self, *args, **kwargs):
from .elements.svg_elements import Ellipse
return Ellipse(self, dict(self._extract_selector(*args, **kwargs), tag_name='ellipse'))
[docs] def ellipses(self, *args, **kwargs):
from .elements.svg_elements import EllipseCollection
return EllipseCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='ellipse'))
[docs] def foreign_object(self, *args, **kwargs):
from .elements.svg_elements import ForeignObject
return ForeignObject(self, dict(self._extract_selector(*args, **kwargs),
tag_name='foreignObject'))
[docs] def foreign_objects(self, *args, **kwargs):
from .elements.svg_elements import ForeignObjectCollection
return ForeignObjectCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='foreignObject'))
[docs] def g(self, *args, **kwargs):
from .elements.svg_elements import G
return G(self, dict(self._extract_selector(*args, **kwargs), tag_name='g'))
[docs] def gs(self, *args, **kwargs):
from .elements.svg_elements import GCollection
return GCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='g'))
[docs] def line(self, *args, **kwargs):
from .elements.svg_elements import Line
return Line(self, dict(self._extract_selector(*args, **kwargs), tag_name='line'))
[docs] def lines(self, *args, **kwargs):
from .elements.svg_elements import LineCollection
return LineCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='line'))
[docs] def linear_gradient(self, *args, **kwargs):
from .elements.svg_elements import LinearGradient
return LinearGradient(self, dict(self._extract_selector(*args, **kwargs),
tag_name='linearGradient'))
[docs] def linear_gradients(self, *args, **kwargs):
from .elements.svg_elements import LinearGradientCollection
return LinearGradientCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='linearGradient'))
[docs] def marker(self, *args, **kwargs):
from .elements.svg_elements import Marker
return Marker(self, dict(self._extract_selector(*args, **kwargs), tag_name='marker'))
[docs] def markers(self, *args, **kwargs):
from .elements.svg_elements import MarkerCollection
return MarkerCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='marker'))
[docs] def path(self, *args, **kwargs):
from .elements.svg_elements import Path
return Path(self, dict(self._extract_selector(*args, **kwargs), tag_name='path'))
[docs] def paths(self, *args, **kwargs):
from .elements.svg_elements import PathCollection
return PathCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='path'))
[docs] def pattern(self, *args, **kwargs):
from .elements.svg_elements import Pattern
return Pattern(self, dict(self._extract_selector(*args, **kwargs), tag_name='pattern'))
[docs] def patterns(self, *args, **kwargs):
from .elements.svg_elements import PatternCollection
return PatternCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='pattern'))
[docs] def polygon(self, *args, **kwargs):
from .elements.svg_elements import Polygon
return Polygon(self, dict(self._extract_selector(*args, **kwargs), tag_name='polygon'))
[docs] def polygons(self, *args, **kwargs):
from .elements.svg_elements import PolygonCollection
return PolygonCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='polygon'))
[docs] def polyline(self, *args, **kwargs):
from .elements.svg_elements import Polyline
return Polyline(self, dict(self._extract_selector(*args, **kwargs), tag_name='polygon'))
[docs] def polylines(self, *args, **kwargs):
from .elements.svg_elements import PolylineCollection
return PolylineCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='polygon'))
[docs] def radial_gradient(self, *args, **kwargs):
from .elements.svg_elements import RadialGradient
return RadialGradient(self, dict(self._extract_selector(*args, **kwargs),
tag_name='radialGradient'))
[docs] def radial_gradients(self, *args, **kwargs):
from .elements.svg_elements import RadialGradientCollection
return RadialGradientCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='radialGradient'))
[docs] def stop(self, *args, **kwargs):
from .elements.svg_elements import Stop
return Stop(self, dict(self._extract_selector(*args, **kwargs), tag_name='stop'))
[docs] def stops(self, *args, **kwargs):
from .elements.svg_elements import StopCollection
return StopCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='stop'))
[docs] def svg(self, *args, **kwargs):
from .elements.svg_elements import SVG
return SVG(self, dict(self._extract_selector(*args, **kwargs), tag_name='svg'))
[docs] def svgs(self, *args, **kwargs):
from .elements.svg_elements import SVGCollection
return SVGCollection(self, dict(self._extract_selector(*args, **kwargs), tag_name='svg'))
[docs] def switch(self, *args, **kwargs):
from .elements.svg_elements import Switch
return Switch(self, dict(self._extract_selector(*args, **kwargs), tag_name='switch'))
[docs] def switches(self, *args, **kwargs):
from .elements.svg_elements import SwitchCollection
return SwitchCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='switch'))
[docs] def symbol(self, *args, **kwargs):
from .elements.svg_elements import Symbol
return Symbol(self, dict(self._extract_selector(*args, **kwargs), tag_name='symbol'))
[docs] def symbols(self, *args, **kwargs):
from .elements.svg_elements import SymbolCollection
return SymbolCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='symbol'))
[docs] def text_path(self, *args, **kwargs):
from .elements.svg_elements import TextPath
return TextPath(self, dict(self._extract_selector(*args, **kwargs), tag_name='textPath'))
[docs] def text_paths(self, *args, **kwargs):
from .elements.svg_elements import TextPathCollection
return TextPathCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='textPath'))
[docs] def tspan(self, *args, **kwargs):
from .elements.svg_elements import TSpan
return TSpan(self, dict(self._extract_selector(*args, **kwargs), tag_name='tspan'))
[docs] def tspans(self, *args, **kwargs):
from .elements.svg_elements import TSpanCollection
return TSpanCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='tspan'))
[docs] def view(self, *args, **kwargs):
from .elements.svg_elements import View
return View(self, dict(self._extract_selector(*args, **kwargs), tag_name='view'))
[docs] def views(self, *args, **kwargs):
from .elements.svg_elements import ViewCollection
return ViewCollection(self, dict(self._extract_selector(*args, **kwargs),
tag_name='view'))