html – HTML namespace

An XIST namespace that contains definitions for all the elements in HTML5 as well as some (deprecated) elements that were in use in previous HTML versions.

This namespace also supports the elements and attributes from the microdata specification.

For all deprecated elements and attributes the class attribute deprecated is set to True.

The function astext() can be used to convert a HTML XIST tree into plain text.

class ll.xist.ns.html.DocTypeHTML40transitional[source]

Bases: ll.xist.xsc.DocType

document type for HTML 4.0 transitional

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

class ll.xist.ns.html.DocTypeHTML401transitional[source]

Bases: ll.xist.xsc.DocType

document type for HTML 4.01 transitional

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

class ll.xist.ns.html.DocTypeXHTML10strict[source]

Bases: ll.xist.xsc.DocType

document type for XHTML 1.0 strict

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

class ll.xist.ns.html.DocTypeXHTML10transitional[source]

Bases: ll.xist.xsc.DocType

document type for XHTML 1.0 transitional

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

class ll.xist.ns.html.DocTypeXHTML11[source]

Bases: ll.xist.xsc.DocType

document type for XHTML 1.1

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

class ll.xist.ns.html.DocTypeHTML5[source]

Bases: ll.xist.xsc.DocType

document type for HTML5

__init__()[source]

Initialize self. See help(type(self)) for accurate signature.

class ll.xist.ns.html.MediaAttr(*content)[source]

Bases: ll.xist.xsc.TextAttr

hasmedia(media)[source]

Return whether self contains the media type media. Returns True if media is None or self is empty.

class ll.xist.ns.html.GlobalAttrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

Attributes that are common to and may be specified on all HTML elements

class accesskey(*content)[source]

Bases: ll.xist.xsc.TextAttr

This attribute’s value is used by the user agent as a guide for creating a keyboard shortcut that activates or focuses the element.

If specified, the value must be an ordered set of unique space-separated tokens that are case-sensitive, each of which must be exactly one Unicode code point in length.

class class_(*content)[source]

Bases: ll.xist.xsc.TextAttr

This attribute, if specified, must have a value that is a set of space-separated tokens representing the various classes that the element belongs to.

class contenteditable(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicates whether the element is editable.

class contextmenu(*content)[source]

Bases: ll.xist.xsc.TextAttr

The element’s context menu. The value must be the ID of a menu element in the DOM.

class dir(*content)[source]

Bases: ll.xist.xsc.TextAttr

The element’s text directionality.

class draggable(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies whether the element is draggable.

class dropzone(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies which types of objects are allowed to be dropped on the element and how they are handled.

class hidden(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When specified, indicates that the element is not yet, or is no longer, directly relevant to the page’s current state.

User agents should not render elements that have the hidden attribute specified.

class id(*content)[source]

Bases: ll.xist.xsc.IDAttr

Specifies its element’s unique identifier.

class lang(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies the primary language for the element’s contents and for any of the element’s attributes that contain text.

class spellcheck(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies whether the user agent should indicate spelling and/or grammar errors in content of the element.

class style(*content)[source]

Bases: ll.xist.xsc.StyleAttr

A CSS styling attribute

class tabindex(*content)[source]

Bases: ll.xist.xsc.IntAttr

Specifies whether an element is supposed to be focusable and what is to be the relative order of the element for the purposes of sequential focus navigation.

class title(*content)[source]

Bases: ll.xist.xsc.TextAttr

Advisory information for the element, such as would be appropriate for a tooltip.

class translate(*content)[source]

Bases: ll.xist.xsc.TextAttr

An enumerated attribute that is used to specify whether an element’s attribute values and the values of its text node children are to be translated when the page is localized, or whether to leave them unchanged.

class role(*content)[source]

Bases: ll.xist.xsc.TextAttr

If specified, must have a value that is a set of space-separated tokens representing the various WAI-ARIA roles that the element belongs to.

class onabort(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onblur(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oncancel(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oncanplay(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oncanplaythrough(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onchange(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onclick(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onclose(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oncontextmenu(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oncuechange(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondblclick(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondrag(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondragend(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondragenter(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondragleave(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondragover(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondragstart(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondrop(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ondurationchange(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onemptied(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onended(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onerror(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onfocus(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oninput(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class oninvalid(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onkeydown(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onkeypress(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onkeyup(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onload(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onloadeddata(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onloadedmetadata(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onloadstart(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmousedown(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmousemove(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmouseout(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmouseover(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmouseup(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmousewheel(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onpause(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onplay(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onplaying(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onprogress(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onratechange(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onreset(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onscroll(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onseeked(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onseeking(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onselect(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onshow(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onstalled(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onsubmit(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onsuspend(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ontimeupdate(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onvolumechange(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onwaiting(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class itemscope(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Microdata attribute: Creates a new item, a group of name-value pairs.

class itemtype(*content)[source]

Bases: ll.xist.xsc.TextAttr

Microdata attribute: Space separated list of absolute URLs specifying the type of the item.

class itemid(*content)[source]

Bases: ll.xist.xsc.URLAttr

Microdata attribute: A global identifier for the item.

class itemprop(*content)[source]

Bases: ll.xist.xsc.TextAttr

Microdata attribute: The name of an item property.

class itemref(*content)[source]

Bases: ll.xist.xsc.TextAttr

Microdata attribute: List of additional element IDs to crawl to find the name-value pairs of the item.

class ll.xist.ns.html.CommonFormAttrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the form control, as used in form submission and in the form element’s elements object. If the attribute is specified, its value must not be the empty string.

class disabled(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Makes the control non-interactive and prevents its value from being submitted.

class autofocus(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Allows the author to indicate that a control is to be focused as soon as the page is loaded or as soon as the dialog within which it finds itself is shown, allowing the user to just start typing without having to manually focus the main control.

class form(*content)[source]

Bases: ll.xist.xsc.TextAttr

Used to explicitly associate the element with its form owner.

class ll.xist.ns.html.html(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The root of an HTML document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class manifest(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the document’s application cache manifest, if there is one.

class ll.xist.ns.html.head(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A collection of metadata for the document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class profile(*content)[source]

Bases: ll.xist.xsc.URLAttr

class ll.xist.ns.html.title(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The document’s title or name.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.base(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Allows authors to specify the document base URL for the purposes of resolving relative URLs, and the name of the default browsing context for the purposes of following hyperlinks.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class href(*content)[source]

Bases: ll.xist.xsc.URLAttr

The document base URL.

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the default browsing context.

Bases: ll.xist.xsc.Element

Allows authors to link their document to other resources.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class href(*content)[source]

Bases: ll.xist.xsc.URLAttr

Destination of the link.

class rel(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type relationship the link has to the document.

class media(*content)[source]

Bases: ll.xist.ns.html.MediaAttr

The media the resource applies to.

class hreflang(*content)[source]

Bases: ll.xist.xsc.TextAttr

The language of the linked resource.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The MIME type of the linked resource.

class sizes(*content)[source]

Bases: ll.xist.xsc.TextAttr

The sizes of icons for visual media.

class rev(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charset(*content)[source]

Bases: ll.xist.xsc.TextAttr

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.meta(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Various kinds of metadata that cannot be expressed using the title, base, link, style, and script elements.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class id(*content)[source]

Bases: ll.xist.ns.html.id

class http_equiv(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the pragma directive.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the metadata element.

class content(*content)[source]

Bases: ll.xist.xsc.TextAttr

The value of the document metadata or pragma directive.

class charset(*content)[source]

Bases: ll.xist.xsc.TextAttr

The character encoding used by the document.

class scheme(*content)[source]

Bases: ll.xist.xsc.TextAttr

publish(publisher)[source]

Generate unicode strings for the node. publisher must be an instance of ll.xist.xsc.Publisher.

The encoding and xhtml specification are taken from the publisher.

class ll.xist.ns.html.style(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Allows authors to embed style information in their documents.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class media(*content)[source]

Bases: ll.xist.ns.html.MediaAttr

Specifies which media the styles apply to.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The styling language as a valid MIME type.

class scoped(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the styles are intended just for the subtree rooted at the style element’s parent element.

class ll.xist.ns.html.script(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Allows authors to include dynamic script and data blocks in their documents.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

If specified, gives the address of the external script resource to use.

class async_(*content)[source]

Bases: ll.xist.xsc.BoolAttr

If present, the script will be executed asynchronously.

class defer(*content)[source]

Bases: ll.xist.xsc.BoolAttr

If present, the script is executed when the page has finished parsing.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The language of the script or format of the data. If the attribute is present, its value must be a valid MIME type.

class charset(*content)[source]

Bases: ll.xist.xsc.TextAttr

The character encoding of the external script resource.

class language(*content)[source]

Bases: ll.xist.xsc.TextAttr

Only used if there’s no type attribute. The MIME subtype (the main type being text automatically)

class event(*content)[source]

Bases: ll.xist.xsc.TextAttr

Must be onload or onload().

class for_(*content)[source]

Bases: ll.xist.xsc.TextAttr

Must be window.

class ll.xist.ns.html.noscript(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Represents nothing if scripting is enabled, and represents its children if scripting is disabled.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.body(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The main content of the document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class onafterprint(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onbeforeprint(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onbeforeunload(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onhashchange(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onmessage(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onoffline(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class ononline(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onpagehide(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onpageshow(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onpopstate(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onresize(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onstorage(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class onunload(*content)[source]

Bases: ll.xist.xsc.TextAttr

Event handler

class background(*content)[source]

Bases: ll.xist.xsc.URLAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class text(*content)[source]

Bases: ll.xist.xsc.ColorAttr

Bases: ll.xist.xsc.ColorAttr

Bases: ll.xist.xsc.ColorAttr

Bases: ll.xist.xsc.ColorAttr

class leftmargin(*content)[source]

Bases: ll.xist.xsc.IntAttr

class topmargin(*content)[source]

Bases: ll.xist.xsc.IntAttr

class marginwidth(*content)[source]

Bases: ll.xist.xsc.IntAttr

class marginheight(*content)[source]

Bases: ll.xist.xsc.IntAttr

class ll.xist.ns.html.article(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A self-contained composition in a document, page, application, or site and that is, in principle, independently distributable or reusable, e.g. in syndication.

This could be a forum post, a magazine or newspaper article, a blog entry, a user-submitted comment, an interactive widget or gadget, or any other independent item of content.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.section(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A generic section of a document or application. A section, in this context, is a thematic grouping of content, typically with a heading.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.nav(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A section of a page that links to other pages or to parts within the page: a section with navigation links.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.aside(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A section of a page that consists of content that is tangentially related to the content around the aside element, and which could be considered separate from that content. Such sections are often represented as sidebars in printed typography.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.h(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Base class of h1, h2, h3, h4, h5 and h6, which represent headings for their sections.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.h1(*content, **attrs)[source]

Bases: ll.xist.ns.html.h

class ll.xist.ns.html.h2(*content, **attrs)[source]

Bases: ll.xist.ns.html.h

class ll.xist.ns.html.h3(*content, **attrs)[source]

Bases: ll.xist.ns.html.h

class ll.xist.ns.html.h4(*content, **attrs)[source]

Bases: ll.xist.ns.html.h

class ll.xist.ns.html.h5(*content, **attrs)[source]

Bases: ll.xist.ns.html.h

class ll.xist.ns.html.h6(*content, **attrs)[source]

Bases: ll.xist.ns.html.h

class ll.xist.ns.html.hgroup(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The heading of a section. The element is used to group a set of h1h6 elements when the heading has multiple levels, such as subheadings, alternative titles, or taglines.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.header(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A group of introductory or navigational aids.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.footer(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A footer for its nearest ancestor sectioning content or sectioning root element. A footer typically contains information about its section such as who wrote it, links to related documents, copyright data, and the like.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.address(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The contact information for its nearest article or body element ancestor.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.p(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A paragraph.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.hr(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A paragraph-level thematic break, e.g. a scene change in a story, or a transition to another topic within a section of a reference book.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class noshade(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class size(*content)[source]

Bases: ll.xist.xsc.IntAttr

class width(*content)[source]

Bases: ll.xist.xsc.TextAttr

class color(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class ll.xist.ns.html.pre(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A block of preformatted text, in which structure is represented by typographic conventions rather than by elements.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

class ll.xist.ns.html.blockquote(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A section that is quoted from another source.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class cite(*content)[source]

Bases: ll.xist.xsc.URLAttr

The source address of the quote.

class ll.xist.ns.html.ol(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class reversed(*content)[source]

Bases: ll.xist.xsc.BoolAttr

If present, it indicates that the list is a descending list (…, 3, 2, 1). If the attribute is omitted, the list is an ascending list (1, 2, 3, …).

class start(*content)[source]

Bases: ll.xist.xsc.TextAttr

The ordinal value of the first list item.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The kind of marker to use in the list.

class compact(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class ll.xist.ns.html.ul(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A list of items, where the order of the items is not important — that is, where changing the order would not materially change the meaning of the document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

class compact(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class ll.xist.ns.html.li(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A list item.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class value(*content)[source]

Bases: ll.xist.xsc.IntAttr

The ordinal value of the list item if the element is a child of an ol element.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.dl(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

An association list consisting of zero or more name-value groups (a description list). Each group must consist of one or more names (dt elements) followed by one or more values (dd elements). Within a single dl element, there should not be more than one dt element for each name.

Name-value groups may be terms and definitions, metadata topics and values, questions and answers, or any other groups of name-value data.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class compact(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class ll.xist.ns.html.dt(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The term, or name, part of a term-description group in a description list (dl element).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.dd(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The description, definition, or value, part of a term-description group in a description list (dl element).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.figure(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Some flow content, optionally with a caption, that is self-contained and is typically referenced as a single unit from the main flow of the document.

The element can thus be used to annotate illustrations, diagrams, photos, code listings, etc, that are referred to from the main content of the document, but that could, without affecting the flow of the document, be moved away from that primary content, e.g. to the side of the page, to dedicated pages, or to an appendix.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.figcaption(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A caption or legend for the rest of the contents of the figcaption element’s parent figure element, if any.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.div(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The div element has no special meaning at all. It represents its children. It can be used with the class, lang, and title attributes to mark up semantics common to a group of consecutive elements.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.a(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

If the a element has an href attribute, then it represents a hyperlink (a hypertext anchor) labeled by its contents.

If the a element has no href attribute, then the element represents a placeholder for where a link might otherwise have been placed, if it had been relevant, consisting of just the element’s contents.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class href(*content)[source]

Bases: ll.xist.xsc.URLAttr

Destination of the link.

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the browsing context for this link.

class rel(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type of relationship the link has to the document.

class media(*content)[source]

Bases: ll.xist.ns.html.MediaAttr

The media the resource applies to.

class hreflang(*content)[source]

Bases: ll.xist.xsc.TextAttr

The language of the linked resource.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The MIME type of the linked resource.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

class coords(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charset(*content)[source]

Bases: ll.xist.xsc.TextAttr

class shape(*content)[source]

Bases: ll.xist.xsc.TextAttr

class rev(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.em(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Stress emphasis.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.strong(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Strong importance.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.small(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Side comments such as small print.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.s(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Contents that are no longer accurate or no longer relevant.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.cite(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The title of a work (e.g. a book, a paper, an essay, a poem, a score, a song, a script, a film, a TV show, a game, a sculpture, a painting, a theatre production, a play, an opera, a musical, an exhibition, a legal case report, etc). This can be a work that is being quoted or referenced in detail (i.e. a citation), or it can just be a work that is mentioned in passing.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.q(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Some phrasing content quoted from another source.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class cite(*content)[source]

Bases: ll.xist.xsc.URLAttr

The source address of the quote.

class ll.xist.ns.html.dfn(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The defining instance of a term. The paragraph, description list group, or section that is the nearest ancestor of the dfn element must also contain the definition(s) for the term given by the dfn element.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.abbr(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

An abbreviation or acronym, optionally with its expansion. The title attribute may be used to provide an expansion of the abbreviation. The attribute, if specified, must contain an expansion of the abbreviation, and nothing else.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.time(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Represents its contents, along with a machine-readable form of those contents in the datetime attribute.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class datetime(*content)[source]

Bases: ll.xist.xsc.TextAttr

The element’s contents in a machine-readable format.

class ll.xist.ns.html.code(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A fragment of computer code. This could be an XML element name, a filename, a computer program, or any other string that a computer would recognize.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.var(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A variable. This could be an actual variable in a mathematical expression or programming context, an identifier representing a constant, a symbol identifying a physical quantity, a function parameter, or just be a term used as a placeholder in prose.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.samp(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A (sample) output from a program or computing system.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.kbd(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

User input (typically keyboard input, although it may also be used to represent other input, such as voice commands).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.sub(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A subscript.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.sup(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A superscript.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.i(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A span of text in an alternate voice or mood, or otherwise offset from the normal prose in a manner indicating a different quality of text, such as a taxonomic designation, a technical term, an idiomatic phrase or short span of transliterated prose from another language, a thought, or a ship name in Western texts.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.b(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A span of text to which attention is being drawn for utilitarian purposes without conveying any extra importance and with no implication of an alternate voice or mood, such as key words in a document abstract, product names in a review, actionable words in interactive text-driven software, or an article lede.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.u(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A span of text with an unarticulated, though explicitly rendered, non-textual annotation, such as labeling the text as being a proper name in Chinese text (a Chinese proper name mark), or labeling the text as being misspelt.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.mark(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A run of text in one document marked or highlighted for reference purposes, due to its relevance in another context. When used in a quotation or other block of text referred to from the prose, it indicates a highlight that was not originally present but which has been added to bring the reader’s attention to a part of the text that might not have been considered important by the original author when the block was originally written, but which is now under previously unexpected scrutiny. When used in the main prose of a document, it indicates a part of the document that has been highlighted due to its likely relevance to the user’s current activity.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.ruby(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Allows one or more spans of phrasing content to be marked with ruby annotations. Ruby annotations are short runs of text presented alongside base text, primarily used in East Asian typography as a guide for pronunciation or to include other annotations. In Japanese, this form of typography is also known as “furigana”.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.rt(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The ruby text component of a ruby annotation.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.rp(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Can be used to provide parentheses around a ruby text component of a ruby annotation, to be shown by user agents that don’t support ruby annotations.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.bdi(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A span of text that is to be isolated from its surroundings for the purposes of bidirectional text formatting.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.bdo(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Explicit text directionality formatting control for its children. It allows authors to override the Unicode bidirectional algorithm by explicitly specifying a direction override.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class dir(*content)[source]

Bases: ll.xist.xsc.TextAttr

The element’s text directionality.

class ll.xist.ns.html.span(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Doesn’t mean anything on its own, but can be useful when used together with the global attributes, e.g. class, lang, or dir. It represents its children.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.br(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A line break.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class clear(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.wbr(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A line break opportunity.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.ins(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

An addition to the document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class cite(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of a document that explains the change.

class datetime(*content)[source]

Bases: ll.xist.xsc.TextAttr

The time and date of the change.

class ll.xist.ns.html.del_(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A removal from the document.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class cite(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of a document that explains the change.

class datetime(*content)[source]

Bases: ll.xist.xsc.TextAttr

The time and date of the change.

class ll.xist.ns.html.img(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

An image.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class alt(*content)[source]

Bases: ll.xist.xsc.TextAttr

Provides equivalent content for those who cannot process images or who have image loading disabled.

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

A non-interactive, optionally animated, image resource that is neither paged nor scripted.

class crossorigin(*content)[source]

Bases: ll.xist.xsc.TextAttr

Allows images from third-party sites that allow cross-origin access to be used with canvas.

class usemap(*content)[source]

Bases: ll.xist.xsc.TextAttr

A valid hash-name reference to a map element that makes the image a clickable image map.

class ismap(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When used on an element that is a descendant of an a element with an href attribute, indicates by its presence that the element provides access to a server-side image map.

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

The width of the image.

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

The height of the image.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

class longdesc(*content)[source]

Bases: ll.xist.xsc.URLAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class border(*content)[source]

Bases: ll.xist.xsc.TextAttr

class hspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class vspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class lowsrc(*content)[source]

Bases: ll.xist.xsc.URLAttr

class ll.xist.ns.html.iframe(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A nested browsing context.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of a page that the nested browsing context is to contain.

class srcdoc(*content)[source]

Bases: ll.xist.xsc.TextAttr

The content of the page that the nested browsing context is to contain.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

A valid browsing context name. The given value is used to name the nested browsing context.

class sandbox(*content)[source]

Bases: ll.xist.xsc.TextAttr

Enables a set of extra restrictions on any content hosted by the iframe. Its value must be an unordered set of unique space-separated tokens that are ASCII case-insensitive. The allowed values are allow-forms, allow-popups, allow-same-origin, allow-scripts, and allow-top-navigation.

class seamless(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the iframe element’s browsing context is to be rendered in a manner that makes it appear to be part of the containing document (seamlessly included in the parent document).

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

The width of the iframe.

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

The height of the iframe.

class longdesc(*content)[source]

Bases: ll.xist.xsc.URLAttr

class frameborder(*content)[source]

Bases: ll.xist.xsc.TextAttr

class marginwidth(*content)[source]

Bases: ll.xist.xsc.IntAttr

class marginheight(*content)[source]

Bases: ll.xist.xsc.IntAttr

class noresize(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class scrolling(*content)[source]

Bases: ll.xist.xsc.TextAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class hspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class vspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class bordercolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class allowfullscreen(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.embed(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

An integration point for an external (typically non-HTML) application or interactive content.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the resource being embedded.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The MIME type by which the plugin to instantiate is selected.

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

The width of the embedded resource.

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

The height of the embedded resource.

class controller(*content)[source]

Bases: ll.xist.xsc.TextAttr

class href(*content)[source]

Bases: ll.xist.xsc.URLAttr

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

class border(*content)[source]

Bases: ll.xist.xsc.IntAttr

class pluginspage(*content)[source]

Bases: ll.xist.xsc.URLAttr

class quality(*content)[source]

Bases: ll.xist.xsc.TextAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class menu(*content)[source]

Bases: ll.xist.xsc.TextAttr

class allowfullscreen(*content)[source]

Bases: ll.xist.xsc.TextAttr

class flashvars(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.object(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

This element can represent an external resource, which, depending on the type of the resource, will either be treated as an image, as a nested browsing context, or as an external resource to be processed by a plugin.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class data(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the resource.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The MIME type of the resource.

class typemustmatch(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the resource specified by the data attribute is only to be used if the value of the type attribute and the Content-Type of the aforementioned resource match.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

A valid browsing context name. The given value is used to name the nested browsing context, if applicable.

class usemap(*content)[source]

Bases: ll.xist.xsc.TextAttr

A valid hash-name reference to a map element that makes the object a clickable map.

class form(*content)[source]

Bases: ll.xist.xsc.TextAttr

The id of the form element this object is associated with.

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

The width of the object.

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

The height of the object.

class declare(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class classid(*content)[source]

Bases: ll.xist.xsc.URLAttr

class codebase(*content)[source]

Bases: ll.xist.xsc.URLAttr

class codetype(*content)[source]

Bases: ll.xist.xsc.TextAttr

class archive(*content)[source]

Bases: ll.xist.xsc.TextAttr

class standby(*content)[source]

Bases: ll.xist.xsc.TextAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class border(*content)[source]

Bases: ll.xist.xsc.IntAttr

class hspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class vspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class ll.xist.ns.html.param(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Defines parameters for plugins invoked by object elements. It does not represent anything on its own.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the parameter.

class value(*content)[source]

Bases: ll.xist.xsc.TextAttr

The value of the parameter.

class valuetype(*content)[source]

Bases: ll.xist.xsc.TextAttr

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.video(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Used for playing videos or movies, and audio files with captions.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the media resource (video, audio) to show.

class crossorigin(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies the origin behaviour for fetching the media resource.

class poster(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of an image file that the user agent can show while no video data is available.

class preload(*content)[source]

Bases: ll.xist.xsc.TextAttr

A hint to the user agent about what the author thinks will lead to the best user experience.

class autoplay(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When present, the user agent will automatically begin playback of the media resource as soon as it can do so without stopping.

class mediagroup(*content)[source]

Bases: ll.xist.xsc.TextAttr

Links multiple media elements together by implicitly creating a MediaController. The value is text; media elements with the same value are automatically linked by the user agent.

class loop(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the media element is to seek back to the start of the media resource upon reaching the end.

class muted(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Controls the default state of the audio output of the media resource, potentially overriding user preferences.

class controls(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the author has not provided a scripted controller and would like the user agent to provide its own set of controls.

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

The width of the video element.

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

The height of the video element.

class ll.xist.ns.html.audio(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A sound or audio stream.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the media resource (video, audio) to show.

class crossorigin(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies the origin behaviour for fetching the media resource.

class preload(*content)[source]

Bases: ll.xist.xsc.TextAttr

A hint to the user agent about what the author thinks will lead to the best user experience.

class autoplay(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When present, the user agent will automatically begin playback of the media resource as soon as it can do so without stopping.

class mediagroup(*content)[source]

Bases: ll.xist.xsc.TextAttr

Links multiple media elements together by implicitly creating a MediaController. The value is text; media elements with the same value are automatically linked by the user agent.

class loop(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the media element is to seek back to the start of the media resource upon reaching the end.

class muted(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Controls the default state of the audio output of the media resource, potentially overriding user preferences.

class controls(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the author has not provided a scripted controller and would like the user agent to provide its own set of controls.

class ll.xist.ns.html.source(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Allows authors to specify multiple alternative media resources for media elements. It does not represent anything on its own.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the media resource.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

Helps the user agent determine if it can play this media resource before fetching it. If specified, its value must be a valid MIME type.

class media(*content)[source]

Bases: ll.xist.ns.html.MediaAttr

The intended media type of the media resource, to help the user agent determine if this media resource is useful to the user before fetching it.

class ll.xist.ns.html.track(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Allows authors to specify explicit external timed text tracks for media elements. It does not represent anything on its own.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class kind(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type of the track.

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address of the text track data.

class srclang(*content)[source]

Bases: ll.xist.xsc.TextAttr

The language of the text track data.

class label(*content)[source]

Bases: ll.xist.xsc.TextAttr

A user-readable title for the track. This title is used by user agents when listing subtitle, caption, and audio description tracks in their user interface.

class default(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the track is to be enabled if the user’s preferences do not indicate that another track would be more appropriate.

class ll.xist.ns.html.canvas(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Provides scripts with a resolution-dependent bitmap canvas, which can be used for rendering graphs, game graphics, art, or other visual images on the fly.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

The width of the canvas element.

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

The height of the canvas element.

class ll.xist.ns.html.map(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Defines an image map in conjunction with any area element descendants. The element represents its children.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

Gives the map a name so that it can be referenced. The attribute must be present and must have a non-empty value with no space characters.

class class_(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.area(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Represents either a hyperlink with some text and a corresponding area on an image map, or a dead area on an image map.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class alt(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies the text of the hyperlink. Required if the href attribute is present.

class coords(*content)[source]

Bases: ll.xist.xsc.TextAttr

Gives the coordinates for the shape described by the shape attribute as a list of integers.

class shape(*content)[source]

Bases: ll.xist.xsc.TextAttr

The shape of the area.

class href(*content)[source]

Bases: ll.xist.xsc.TextAttr

Destination of the link.

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the browsing context for this link.

class rel(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type of relationship the link has to the document.

class media(*content)[source]

Bases: ll.xist.ns.html.MediaAttr

The media the resource applies to.

class hreflang(*content)[source]

Bases: ll.xist.xsc.TextAttr

The language of the linked resource.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The MIME type of the linked resource.

class nohref(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class ll.xist.ns.html.table(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Data with more than one dimension, in the form of a table.

The table element takes part in the table model. Tables have rows, columns, and cells given by their descendants. The rows and columns form a grid; a table’s cells must completely cover that grid without overlap.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class border(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicate that the table element is not being used for layout purposes.

class summary(*content)[source]

Bases: ll.xist.xsc.TextAttr

class width(*content)[source]

Bases: ll.xist.xsc.TextAttr

class frame(*content)[source]

Bases: ll.xist.xsc.TextAttr

class rules(*content)[source]

Bases: ll.xist.xsc.TextAttr

class cellspacing(*content)[source]

Bases: ll.xist.xsc.IntAttr

class cellpadding(*content)[source]

Bases: ll.xist.xsc.IntAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class height(*content)[source]

Bases: ll.xist.xsc.TextAttr

class background(*content)[source]

Bases: ll.xist.xsc.URLAttr

class bordercolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class hspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class vspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class ll.xist.ns.html.caption(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The title of the table that is its parent.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.colgroup(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A group of one or more columns in the table that is its parent.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class span(*content)[source]

Bases: ll.xist.xsc.IntAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charoff(*content)[source]

Bases: ll.xist.xsc.TextAttr

class width(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.col(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

One or more columns in the column group represented by the colgroup that is its parent.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class span(*content)[source]

Bases: ll.xist.xsc.IntAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charoff(*content)[source]

Bases: ll.xist.xsc.TextAttr

class width(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.tbody(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A block of rows that consist of a body of data for the parent table element.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class charoff(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.thead(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The block of rows that consist of the column labels (headers) for the parent table element.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class charoff(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.tfoot(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The block of rows that consist of the column summaries (footers) for the parent table element

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class charoff(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.tr(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A row of cells in a table.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charoff(*content)[source]

Bases: ll.xist.xsc.IntAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class nowrap(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

class background(*content)[source]

Bases: ll.xist.xsc.URLAttr

class ll.xist.ns.html.td(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A data cell in a table.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class colspan(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of columns that the cell is to span.

class rowspan(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of rows that the cell is to span.

class headers(*content)[source]

Bases: ll.xist.xsc.TextAttr

A space separated list of ids of th elements that this cell targets.

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charoff(*content)[source]

Bases: ll.xist.xsc.IntAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class abbr(*content)[source]

Bases: ll.xist.xsc.TextAttr

class axis(*content)[source]

Bases: ll.xist.xsc.TextAttr

class scope(*content)[source]

Bases: ll.xist.xsc.TextAttr

class nowrap(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

class background(*content)[source]

Bases: ll.xist.xsc.URLAttr

class bordercolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class ll.xist.ns.html.th(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A header cell in a table.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class colspan(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of columns that the cell is to span.

class rowspan(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of rows that the cell is to span.

class headers(*content)[source]

Bases: ll.xist.xsc.TextAttr

A space separated list of ids of th elements that this cell targets.

class scope(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies to which cells the header applies.

class abbr(*content)[source]

Bases: ll.xist.xsc.TextAttr

An alternative label for the header cell, to be used when referencing the cell in other contexts (e.g. when describing the header cells that apply to a data cell). It is typically an abbreviated form of the full header cell, but can also be an expansion, or merely a different phrasing.

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class char(*content)[source]

Bases: ll.xist.xsc.TextAttr

class charoff(*content)[source]

Bases: ll.xist.xsc.IntAttr

class valign(*content)[source]

Bases: ll.xist.xsc.TextAttr

class axis(*content)[source]

Bases: ll.xist.xsc.TextAttr

class nowrap(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class bgcolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class width(*content)[source]

Bases: ll.xist.xsc.IntAttr

class height(*content)[source]

Bases: ll.xist.xsc.IntAttr

class background(*content)[source]

Bases: ll.xist.xsc.URLAttr

class bordercolor(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class ll.xist.ns.html.form(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A collection of form-associated elements, some of which can represent editable values that can be submitted to a server for processing.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class accept_charset(*content)[source]

Bases: ll.xist.xsc.TextAttr

The character encodings that are to be used for the submission.

class action(*content)[source]

Bases: ll.xist.xsc.URLAttr

The address to which this form will be submitted.

class autocomplete(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies whether autocompletion should be done for this form.

class enctype(*content)[source]

Bases: ll.xist.xsc.TextAttr

The encoding algorithm to use for encoding the form data.

class method(*content)[source]

Bases: ll.xist.xsc.TextAttr

The HTTP method for submitting the form.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

The form’s name within the forms collection.

class novalidate(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicate that the form is not to be validated during submission.

class target(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the browsing context for the response.

class ll.xist.ns.html.fieldset(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A set of form controls optionally grouped under a common name.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class disabled(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Causes all the form control descendants of the fieldset element, excluding those that are descendants of the fieldset element’s first legend element child, if any, to be disabled.

class form(*content)[source]

Bases: ll.xist.xsc.TextAttr

Used to explicitly associate the fieldset element with its form owner.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

The element’s name.

class ll.xist.ns.html.legend(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A caption for the rest of the contents of the legend element’s parent fieldset element, if any.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.label(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A caption in a user interface. The caption can be associated with a specific form control, known as the label element’s labeled control, either using for attribute, or by putting the form control inside the label element itself.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class form(*content)[source]

Bases: ll.xist.xsc.TextAttr

Used to explicitly associate the label element with its form owner.

class for_(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicate the id of a form control with which the caption is to be associated.

class ll.xist.ns.html.input(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A caption in a user interface. The caption can be associated with a specific form control, known as the label element’s labeled control, either using for attribute, or by putting the form control inside the label element itself.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.CommonFormAttrs

class accept(*content)[source]

Bases: ll.xist.xsc.TextAttr

Provides user agents with a hint of what file types will be accepted. A valid MIME type, or audio/*, video/*, image/* or a string starting with . the specify an allowed file extention.

class alt(*content)[source]

Bases: ll.xist.xsc.TextAttr

For type="button": provides the textual label for the button for users and user agents who cannot use the image.

class autocomplete(*content)[source]

Bases: ll.xist.xsc.TextAttr

The off state indicates either that the control’s input data is particularly sensitive (for example the activation code for a nuclear weapon); or that it is a value that will never be reused (for example a one-time-key for a bank login) and the user will therefore have to explicitly enter the data each time, instead of being able to rely on the UA to prefill the value for him; or that the document provides its own autocomplete mechanism and does not want the user agent to provide autocompletion values.

Conversely, the on state indicates that the value is not particularly sensitive and the user can expect to be able to rely on his user agent to remember values he has entered for that control.

class checked(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Gives the default checkedness of the input element.

class dirname(*content)[source]

Bases: ll.xist.xsc.TextAttr

Adds an additional name/value pair to the submitted data with this name that provides the writing direction of the submitted data.

class formaction(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the action attribute of the form.

class formenctype(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the enctype attribute of the form.

class formmethod(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the method attribute of the form.

class formnovalidate(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Can be used on submit buttons to overwrite the novalidate attribute of the form.

class formtarget(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the target attribute of the form.

class list(*content)[source]

Bases: ll.xist.xsc.TextAttr

Identify an element that lists predefined options suggested to the user.

If present, its value must be the ID of a datalist element in the same document.

class max(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicates the allowed maximum value for the element.

class maxlength(*content)[source]

Bases: ll.xist.xsc.IntAttr

The maximum length of the value.

class min(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicates the allowed minimum value for the element.

class multiple(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicates whether the user is to be allowed to specify more than one value.

class pattern(*content)[source]

Bases: ll.xist.xsc.TextAttr

A regular expression against which the control’s value, or, when the multiple attribute applies and is set, the control’s values, are to be checked.

class placeholder(*content)[source]

Bases: ll.xist.xsc.TextAttr

A short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. The attribute, if specified, must have a value that contains no “LF” (U+000A) or “CR” (U+000D) characters.

The placeholder attribute should not be used as an alternative to a label. For a longer hint or other advisory text, the title attribute is more appropriate.

class readonly(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Controls whether or not the user can edit the form control. When specified, the element is immutable.

class required(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When specified, the element is required.

class size(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of characters that, in a visual rendering, the user agent is to allow the user to see while editing the element’s value.

class src(*content)[source]

Bases: ll.xist.xsc.TextAttr

The address of the image for type="image".

class step(*content)[source]

Bases: ll.xist.xsc.TextAttr

The granularity that is expected (and required) of the value, by limiting the allowed values.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The data type (and associated control) of the element.

class value(*content)[source]

Bases: ll.xist.xsc.TextAttr

The default value of the input element.

class width(*content)[source]

Bases: ll.xist.xsc.TextAttr

The width of the button image (for type="image")

class height(*content)[source]

Bases: ll.xist.xsc.TextAttr

The height of the button image (for type="image")

class usemap(*content)[source]

Bases: ll.xist.xsc.URLAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class border(*content)[source]

Bases: ll.xist.xsc.IntAttr

class ll.xist.ns.html.button(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A button labeled by its contents. The type attribute controls the behavior of the button when it is activated.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.CommonFormAttrs

class formaction(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the action attribute of the form.

class formenctype(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the enctype attribute of the form.

class formmethod(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the method attribute of the form.

class formnovalidate(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Can be used on submit buttons to overwrite the novalidate attribute of the form.

class formtarget(*content)[source]

Bases: ll.xist.xsc.TextAttr

Can be used on submit buttons to overwrite the target attribute of the form.

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type of the button. submit submits the form. reset resets the form and button does nothing.

class value(*content)[source]

Bases: ll.xist.xsc.TextAttr

The button’s value for the purposes of form submission.

A button (and its value) is only included in the form submission if the button itself was used to initiate the form submission.

class ll.xist.ns.html.select(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A control for selecting amongst a set of options.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.CommonFormAttrs

class multiple(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicates whether the user is to be allowed to specify more than one value.

class required(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When specified, the user will be required to select a value before submitting the form.

class size(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of options to show to the user.

class rows(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.datalist(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A set of option elements that represent predefined options for other controls. The contents of the element represents fallback content for legacy user agents, intermixed with option elements that represent the predefined options. In the rendering, the datalist element represents nothing and it, along with its children, should be hidden.

The datalist element is hooked up to an input element using the list attribute on the input element.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.optgroup(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A group of option elements with a common label.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class disabled(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Can be used to disable a group of option elements together.

class label(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the group, for the purposes of the user interface. User agents should use this attribute’s value when labelling the group of option elements in a select element.

class ll.xist.ns.html.option(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

An option in a select element or as part of a list of suggestions in a datalist element.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class disabled(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Specifies that the option should be disabled.

class label(*content)[source]

Bases: ll.xist.xsc.TextAttr

A label for the option element.

class selected(*content)[source]

Bases: ll.xist.xsc.BoolAttr

The default selectedness of the option element.

class value(*content)[source]

Bases: ll.xist.xsc.TextAttr

The value of the option element for the purposes of form submission when the option is selected.

class ll.xist.ns.html.textarea(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A multiline plain text edit control for the element’s raw value.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.CommonFormAttrs

class cols(*content)[source]

Bases: ll.xist.xsc.IntAttr

The expected maximum number of characters per line.

class dirname(*content)[source]

Bases: ll.xist.xsc.TextAttr

Adds an additional name/value pair to the submitted data with this name that provides the writing direction of the submitted data.

class maxlength(*content)[source]

Bases: ll.xist.xsc.IntAttr

The maximum length of the value.

class placeholder(*content)[source]

Bases: ll.xist.xsc.TextAttr

A short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format. The attribute, if specified, must have a value that contains no “LF” (U+000A) or “CR” (U+000D) characters.

The placeholder attribute should not be used as an alternative to a label. For a longer hint or other advisory text, the title attribute is more appropriate.

class readonly(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Controls whether the text can be edited by the user or not.

class required(*content)[source]

Bases: ll.xist.xsc.BoolAttr

When specified, the user will be required to enter a value before submitting the form.

class rows(*content)[source]

Bases: ll.xist.xsc.IntAttr

The number of lines to show.

class wrap(*content)[source]

Bases: ll.xist.xsc.TextAttr

Specifies how linefeeds in the controls value are to be handled. soft indicates that the text in the textarea is not to be wrapped when it is submitted (though it can still be wrapped in the rendering). hard indicates that the text in the textarea is to have newlines added by the user agent so that the text is wrapped when it is submitted.

class ll.xist.ns.html.keygen(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A key pair generator control. When the control’s form is submitted, the private key is stored in the local keystore, and the public key is packaged and sent to the server.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.CommonFormAttrs

class challenge(*content)[source]

Bases: ll.xist.xsc.TextAttr

Its value will be packaged with the submitted key.

class keytype(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type of key to be used. Only rsa is officially supported.

class ll.xist.ns.html.output(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The result of a calculation.

Allows an explicit relationship to be made between the result of a calculation and the elements that represent the values that went into the calculation or that otherwise influenced the calculation.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class for_(*content)[source]

Bases: ll.xist.xsc.TextAttr

If specified, must be a list of space-separated ids of the elements that influenced the output.

class form(*content)[source]

Bases: ll.xist.xsc.TextAttr

Used to explicitly associate the output element with its form owner.

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

The element’s name.

class ll.xist.ns.html.progress(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

The completion progress of a task.

The progress is either indeterminate, indicating that progress is being made but that it is not clear how much more work remains to be done before the task is complete (e.g. because the task is waiting for a remote host to respond), or the progress is a number in the range zero to a maximum, giving the fraction of work that has so far been completed.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class value(*content)[source]

Bases: ll.xist.xsc.FloatAttr

Specifies how much of the task has been completed. If value is not specified the progress is indeterminate.

class max(*content)[source]

Bases: ll.xist.xsc.FloatAttr

Specifies how much work the task requires in total. The units are arbitrary and not specified.

class ll.xist.ns.html.meter(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A scalar measurement within a known range, or a fractional value; for example disk usage, the relevance of a query result, or the fraction of a voting population to have selected a particular candidate.

This is also known as a gauge.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class value(*content)[source]

Bases: ll.xist.xsc.FloatAttr

The value to have the gauge indicate as the “measured” value.

class min(*content)[source]

Bases: ll.xist.xsc.FloatAttr

The lower bound of the range.

class max(*content)[source]

Bases: ll.xist.xsc.FloatAttr

The lower bound of the range.

class low(*content)[source]

Bases: ll.xist.xsc.FloatAttr

The range that is considered to be the “low” part.

class high(*content)[source]

Bases: ll.xist.xsc.FloatAttr

The range that is considered to be the “high” part.

class optimum(*content)[source]

Bases: ll.xist.xsc.FloatAttr

The position that is “optimum”.

class ll.xist.ns.html.details(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A disclosure widget from which the user can obtain additional information or controls.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class open(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that both the summary and the additional information is to be shown to the user. If the attribute is absent, only the summary is to be shown.

class ll.xist.ns.html.summary(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A summary, caption, or legend for the rest of the contents of the summary element’s parent details element, if any.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.command(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A summary, caption, or legend for the rest of the contents of the summary element’s parent details element, if any.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

Indicates the kind of command: either a normal command with an associated action, or a state or option that can be toggled, or a selection of one item from a list of items.

class label(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the command, as shown to the user.

class icon(*content)[source]

Bases: ll.xist.xsc.URLAttr

A picture that represents the command.

class disabled(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the command is not available in the current state.

class checked(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the command is selected (for type="checkbox" or type="radio")

class radiogroup(*content)[source]

Bases: ll.xist.xsc.TextAttr

The name of the group of commands that will be toggled when the command itself is toggled (for type="radio").

class command(*content)[source]

Bases: ll.xist.xsc.TextAttr

The ID of the master command.

class ll.xist.ns.html.menu(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A list of commands.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class type(*content)[source]

Bases: ll.xist.xsc.TextAttr

The type of the menu.

class label(*content)[source]

Bases: ll.xist.xsc.TextAttr

The label of the menu. It is used by user agents to display nested menus in the UI.

class compact(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class ll.xist.ns.html.dialog(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

A part of an application that a user interacts with to perform a task, for example a dialog box, inspector, or window.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class open(*content)[source]

Bases: ll.xist.xsc.BoolAttr

Indicates that the dialog element is active and that the user can interact with it.

class ll.xist.ns.html.data(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Microdata element: Contains the name and value of an item property.

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.xsc.Attrs

class itemprop(*content)[source]

Bases: ll.xist.xsc.TextAttr

Microdata attribute: The name of an item property.

class value(*content)[source]

Bases: ll.xist.xsc.TextAttr

Microdata attribute: The value of an item property.

class ll.xist.ns.html.noframes(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Alternate content container for non frame-based rendering (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.dir(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Multiple column list (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class compact(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class ll.xist.ns.html.center(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Centered block level element (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.acronym(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Indicates an acronym (e.g., WAC, radar, etc.) (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.tt(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Teletype or monospaced text style (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.big(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Large text style (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.strike(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Strike-through text style (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class ll.xist.ns.html.basefont(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Base font size (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class face(*content)[source]

Bases: ll.xist.xsc.TextAttr

class size(*content)[source]

Bases: ll.xist.xsc.TextAttr

class color(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class ll.xist.ns.html.font(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Local change to font (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class face(*content)[source]

Bases: ll.xist.xsc.TextAttr

class size(*content)[source]

Bases: ll.xist.xsc.TextAttr

class color(*content)[source]

Bases: ll.xist.xsc.ColorAttr

class ll.xist.ns.html.applet(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Java applet (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class codebase(*content)[source]

Bases: ll.xist.xsc.URLAttr

class archive(*content)[source]

Bases: ll.xist.xsc.TextAttr

class code(*content)[source]

Bases: ll.xist.xsc.TextAttr

class object(*content)[source]

Bases: ll.xist.xsc.TextAttr

class alt(*content)[source]

Bases: ll.xist.xsc.TextAttr

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

class width(*content)[source]

Bases: ll.xist.xsc.TextAttr

class height(*content)[source]

Bases: ll.xist.xsc.TextAttr

class align(*content)[source]

Bases: ll.xist.xsc.TextAttr

class hspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class vspace(*content)[source]

Bases: ll.xist.xsc.IntAttr

class ll.xist.ns.html.isindex(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

(deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class prompt(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.frameset(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Window subdivision (deprecated)

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class rows(*content)[source]

Bases: ll.xist.xsc.TextAttr

class cols(*content)[source]

Bases: ll.xist.xsc.TextAttr

class onload(*content)[source]

Bases: ll.xist.xsc.TextAttr

class onunload(*content)[source]

Bases: ll.xist.xsc.TextAttr

class framespacing(*content)[source]

Bases: ll.xist.xsc.TextAttr

class border(*content)[source]

Bases: ll.xist.xsc.IntAttr

class marginwidth(*content)[source]

Bases: ll.xist.xsc.IntAttr

class marginheight(*content)[source]

Bases: ll.xist.xsc.IntAttr

class frameborder(*content)[source]

Bases: ll.xist.xsc.IntAttr

class noresize(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class scrolling(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.frame(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Subwindow (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

class longdesc(*content)[source]

Bases: ll.xist.xsc.TextAttr

class name(*content)[source]

Bases: ll.xist.xsc.TextAttr

class src(*content)[source]

Bases: ll.xist.xsc.URLAttr

class marginwidth(*content)[source]

Bases: ll.xist.xsc.IntAttr

class marginheight(*content)[source]

Bases: ll.xist.xsc.IntAttr

class framespacing(*content)[source]

Bases: ll.xist.xsc.TextAttr

class border(*content)[source]

Bases: ll.xist.xsc.IntAttr

class frameborder(*content)[source]

Bases: ll.xist.xsc.IntAttr

class noresize(*content)[source]

Bases: ll.xist.xsc.BoolAttr

class scrolling(*content)[source]

Bases: ll.xist.xsc.TextAttr

class ll.xist.ns.html.nobr(*content, **attrs)[source]

Bases: ll.xist.xsc.Element

Prevents line breaks (deprecated).

class Attrs(*args, **kwargs)[source]

Bases: ll.xist.ns.html.GlobalAttrs

ll.xist.ns.html.astext(node, width=None, default={'display': 'inline'}, h1={'bottom': 1, 'display': 'block', 'overline': '=', 'top': 2, 'underline': '=', 'whitespace': 'nowrap'}, h2={'bottom': 1, 'display': 'block', 'top': 2, 'underline': '-', 'whitespace': 'nowrap'}, h3={'bottom': 1, 'display': 'block', 'top': 2, 'underline': '"', 'whitespace': 'nowrap'}, h4={'bottom': 1, 'display': 'block', 'top': 2, 'underline': "'", 'whitespace': 'nowrap'}, h5={'bottom': 1, 'display': 'block', 'top': 2, 'underline': "'", 'whitespace': 'nowrap'}, h6={'bottom': 1, 'display': 'block', 'top': 2, 'underline': "'", 'whitespace': 'nowrap'}, dl={'bottom': 1, 'display': 'block', 'top': 1}, dt={'display': 'block', 'top': 1}, dd={'bottom': 1, 'display': 'block', 'left': ' '}, ol={'bottom': 1, 'display': 'block', 'top': 1}, ol_li={'bottom': 1, 'display': 'block', 'left': '{pos:{width}}. \n', 'top': 1}, ul={'bottom': 1, 'display': 'block', 'top': 1}, ul_li={'bottom': 1, 'display': 'block', 'left': ('* \n', '- \n'), 'top': 1}, li={'bottom': 1, 'display': 'block', 'top': 1}, pre={'bottom': 1, 'display': 'block', 'left': ' ', 'top': 1, 'whitespace': 'pre'}, blockquote={'bottom': 1, 'display': 'block', 'left': ' ', 'top': 1}, div={'bottom': 1, 'display': 'block'}, p={'bottom': 1, 'display': 'block'}, hr={'bottom': 1, 'display': 'block'}, address={'bottom': 1, 'display': 'block'}, th={'bottom': 1, 'display': 'block'}, td={'bottom': 1, 'display': 'block'}, b={'display': 'inline', 'prefix': '*', 'suffix': '*'}, u={'display': 'inline', 'prefix': '_', 'suffix': '_'}, code={'display': 'inline', 'prefix': '``', 'suffix': '``'}, **kwargs)[source]

Return the node node formatted as plain text. node must contain an HTML tree.

width is the maximum line length. If width is :const`None` line length is unlimited (i.e. no line wrapping will be done).

The rest of the parameters specify the formatting styles for HTML elements. The parameter names are the names of the HTML elements, except for ol_li which is used for li elements inside ol elements and ul_li which is used for li elements inside ul elements. default is used if the parameter for the HTML element is not passed.

The parameter value must be a dictionary which might contain any of the following keys (if the key is missing a default value is used):

display
This is either "block" for a block level element or "inline" for an inline element.
prefix
A string that should be output before any of the content of the block.
suffix
A string that should be output after any of the content of the block.

The following keys will only be used for display == "block":

top
The minimum number of empty lines before the block. (The default is 0)
bottom
The minimum number of empty lines after the block. (The default is 0)
left

The left margin for the block. This margin can be different for different nesting levels (e. g. different “bullets” can be used for nested uls). If the value is a string it will be used as the indentation on the left side for all levels, otherwise it must be a list of strings. If the nesting of this element is deeper than the list, the last item in the list will be used.

If a margin contains multiple lines, the first indentation line will be used for the first content line, the second indentation line for the second content line etc. If the content has more lines than the indentation the last indentation line will be repeated. All indentation lines will be padded to the longest line. For example the indentation for a li element inside an ul element on level 1 is "*  \n", i.e. the first line will be indented with "*  ", all subsequent lines with three spaces.

right
The right margin for the block. This supports the same semantics regarding levels and multiple lines as the left argument.
whitespace
Specifies how lines in the block should be wrapped. "normal" collapses consecutive whitespace and wraps the lines at the specified width. "nowrap" collapses consecutive whitespace but doesn’t wrap and "pre" uses the lines as given.
overline
A character that is repeated for the width of the content as a rule before the content. If None is used, no rule will be output. (Note that this will only work on the innermost block level element.)
underline
A rule after the content of the block. (Note that this will only work on the innermost block level element.)