HomePython softwarell.xistnshtml

XIST.ns.html

Module implementing HTML 5 (with additions)

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 DocTypeHTML40transitional​(ll.xist.xsc.DocType):

document type for HTML 4.0 transitional

def __init__​(self):

class DocTypeHTML401transitional​(ll.xist.xsc.DocType):

document type for HTML 4.01 transitional

def __init__​(self):

class DocTypeXHTML10strict​(ll.xist.xsc.DocType):

document type for XHTML 1.0 strict

def __init__​(self):

class DocTypeXHTML10transitional​(ll.xist.xsc.DocType):

document type for XHTML 1.0 transitional

def __init__​(self):

class DocTypeXHTML11​(ll.xist.xsc.DocType):

document type for XHTML 1.1

def __init__​(self):

class DocTypeHTML5​(ll.xist.xsc.DocType):

document type for HTML5

def __init__​(self):

class MediaAttr​(ll.xist.xsc.TextAttr):

def hasmedia​(self, media):

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

class GlobalAttrs​(ll.xist.xsc.Attrs):

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

def validateattr​(self, path):

class accesskey​(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_​(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​(ll.xist.xsc.TextAttr):

Indicates whether the element is editable.

class contextmenu​(ll.xist.xsc.TextAttr):

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

class draggable​(ll.xist.xsc.TextAttr):

Specifies whether the element is draggable.

class dropzone​(ll.xist.xsc.TextAttr):

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

class hidden​(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​(ll.xist.xsc.IDAttr):

Specifies its element's unique identifier.

class lang​(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​(ll.xist.xsc.TextAttr):

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

class tabindex​(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 translate​(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​(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​(ll.xist.xsc.TextAttr):

Event handler

class onblur​(ll.xist.xsc.TextAttr):

Event handler

class oncancel​(ll.xist.xsc.TextAttr):

Event handler

class oncanplay​(ll.xist.xsc.TextAttr):

Event handler

class oncanplaythrough​(ll.xist.xsc.TextAttr):

Event handler

class onchange​(ll.xist.xsc.TextAttr):

Event handler

class onclick​(ll.xist.xsc.TextAttr):

Event handler

class onclose​(ll.xist.xsc.TextAttr):

Event handler

class oncontextmenu​(ll.xist.xsc.TextAttr):

Event handler

class oncuechange​(ll.xist.xsc.TextAttr):

Event handler

class ondblclick​(ll.xist.xsc.TextAttr):

Event handler

class ondrag​(ll.xist.xsc.TextAttr):

Event handler

class ondragend​(ll.xist.xsc.TextAttr):

Event handler

class ondragenter​(ll.xist.xsc.TextAttr):

Event handler

class ondragleave​(ll.xist.xsc.TextAttr):

Event handler

class ondragover​(ll.xist.xsc.TextAttr):

Event handler

class ondragstart​(ll.xist.xsc.TextAttr):

Event handler

class ondrop​(ll.xist.xsc.TextAttr):

Event handler

class ondurationchange​(ll.xist.xsc.TextAttr):

Event handler

class onemptied​(ll.xist.xsc.TextAttr):

Event handler

class onended​(ll.xist.xsc.TextAttr):

Event handler

class onerror​(ll.xist.xsc.TextAttr):

Event handler

class onfocus​(ll.xist.xsc.TextAttr):

Event handler

class oninput​(ll.xist.xsc.TextAttr):

Event handler

class oninvalid​(ll.xist.xsc.TextAttr):

Event handler

class onkeydown​(ll.xist.xsc.TextAttr):

Event handler

class onkeypress​(ll.xist.xsc.TextAttr):

Event handler

class onkeyup​(ll.xist.xsc.TextAttr):

Event handler

class onload​(ll.xist.xsc.TextAttr):

Event handler

class onloadeddata​(ll.xist.xsc.TextAttr):

Event handler

class onloadedmetadata​(ll.xist.xsc.TextAttr):

Event handler

class onloadstart​(ll.xist.xsc.TextAttr):

Event handler

class onmousedown​(ll.xist.xsc.TextAttr):

Event handler

class onmousemove​(ll.xist.xsc.TextAttr):

Event handler

class onmouseout​(ll.xist.xsc.TextAttr):

Event handler

class onmouseover​(ll.xist.xsc.TextAttr):

Event handler

class onmouseup​(ll.xist.xsc.TextAttr):

Event handler

class onmousewheel​(ll.xist.xsc.TextAttr):

Event handler

class onpause​(ll.xist.xsc.TextAttr):

Event handler

class onplay​(ll.xist.xsc.TextAttr):

Event handler

class onplaying​(ll.xist.xsc.TextAttr):

Event handler

class onprogress​(ll.xist.xsc.TextAttr):

Event handler

class onratechange​(ll.xist.xsc.TextAttr):

Event handler

class onreset​(ll.xist.xsc.TextAttr):

Event handler

class onscroll​(ll.xist.xsc.TextAttr):

Event handler

class onseeked​(ll.xist.xsc.TextAttr):

Event handler

class onseeking​(ll.xist.xsc.TextAttr):

Event handler

class onselect​(ll.xist.xsc.TextAttr):

Event handler

class onshow​(ll.xist.xsc.TextAttr):

Event handler

class onstalled​(ll.xist.xsc.TextAttr):

Event handler

class onsubmit​(ll.xist.xsc.TextAttr):

Event handler

class onsuspend​(ll.xist.xsc.TextAttr):

Event handler

class ontimeupdate​(ll.xist.xsc.TextAttr):

Event handler

class onvolumechange​(ll.xist.xsc.TextAttr):

Event handler

class onwaiting​(ll.xist.xsc.TextAttr):

Event handler

class itemscope​(ll.xist.xsc.BoolAttr):

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

class itemtype​(ll.xist.xsc.TextAttr):

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

class itemid​(ll.xist.xsc.URLAttr):

Microdata attribute: A global identifier for the item.

class itemprop​(ll.xist.xsc.TextAttr):

Microdata attribute: The name of an item property.

class itemref​(ll.xist.xsc.TextAttr):

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

class title​(ll.xist.xsc.TextAttr):

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

class dir​(ll.xist.xsc.TextAttr):

The element's text directionality.

class CommonFormAttrs​(GlobalAttrs):

class name​(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​(ll.xist.xsc.BoolAttr):

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

class autofocus​(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​(ll.xist.xsc.TextAttr):

Used to explicitly associate the element with its form owner.

class html​(ll.xist.xsc.Element):

The root of an HTML document.

class Attrs​(GlobalAttrs):

class manifest​(ll.xist.xsc.URLAttr):

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

class title​(ll.xist.xsc.Element):

The document's title or name.

class Attrs​(GlobalAttrs):

class base​(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​(GlobalAttrs):

class href​(ll.xist.xsc.URLAttr):

The document base URL.

class target​(ll.xist.xsc.TextAttr):

The name of the default browsing context.

class meta​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class id​(GlobalAttrs.id):

class name​(ll.xist.xsc.TextAttr):

The name of the metadata element.

class charset​(ll.xist.xsc.TextAttr):

The character encoding used by the document.

class http_equiv​(ll.xist.xsc.TextAttr):

The name of the pragma directive.

class content​(ll.xist.xsc.TextAttr):

The value of the document metadata or pragma directive.

class scheme​(ll.xist.xsc.TextAttr):

def publish​(self, publisher):

class style​(ll.xist.xsc.Element):

Allows authors to embed style information in their documents.

class Attrs​(GlobalAttrs):

class media​(MediaAttr):

Specifies which media the styles apply to.

class type​(ll.xist.xsc.TextAttr):

The styling language as a valid MIME type.

class scoped​(ll.xist.xsc.BoolAttr):

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

class script​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class type​(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​(ll.xist.xsc.TextAttr):

The character encoding of the external script resource.

class src​(ll.xist.xsc.URLAttr):

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

class async​(ll.xist.xsc.BoolAttr):

If present, the script will be executed asynchronously.

class defer​(ll.xist.xsc.BoolAttr):

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

class language​(ll.xist.xsc.TextAttr):

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

class event​(ll.xist.xsc.TextAttr):

Must be onload or onload().

class for_​(ll.xist.xsc.TextAttr):

Must be window.

class noscript​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class body​(ll.xist.xsc.Element):

The main content of the document.

class Attrs​(GlobalAttrs):

class onafterprint​(ll.xist.xsc.TextAttr):

Event handler

class onbeforeprint​(ll.xist.xsc.TextAttr):

Event handler

class onbeforeunload​(ll.xist.xsc.TextAttr):

Event handler

class onhashchange​(ll.xist.xsc.TextAttr):

Event handler

class onmessage​(ll.xist.xsc.TextAttr):

Event handler

class onoffline​(ll.xist.xsc.TextAttr):

Event handler

class ononline​(ll.xist.xsc.TextAttr):

Event handler

class onpagehide​(ll.xist.xsc.TextAttr):

Event handler

class onpageshow​(ll.xist.xsc.TextAttr):

Event handler

class onpopstate​(ll.xist.xsc.TextAttr):

Event handler

class onresize​(ll.xist.xsc.TextAttr):

Event handler

class onstorage​(ll.xist.xsc.TextAttr):

Event handler

class onunload​(ll.xist.xsc.TextAttr):

Event handler

class background​(ll.xist.xsc.URLAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

class text​(ll.xist.xsc.ColorAttr):

class leftmargin​(ll.xist.xsc.IntAttr):

class topmargin​(ll.xist.xsc.IntAttr):

class marginwidth​(ll.xist.xsc.IntAttr):

class marginheight​(ll.xist.xsc.IntAttr):

class article​(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​(GlobalAttrs):

class section​(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​(GlobalAttrs):

class aside​(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​(GlobalAttrs):

class h​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class h1​(h):

class h2​(h):

class h3​(h):

class h4​(h):

class h5​(h):

class h6​(h):

class hgroup​(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​(GlobalAttrs):

class address​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class p​(ll.xist.xsc.Element):

A paragraph.

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class hr​(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​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class noshade​(ll.xist.xsc.BoolAttr):

class size​(ll.xist.xsc.IntAttr):

class width​(ll.xist.xsc.TextAttr):

class color​(ll.xist.xsc.ColorAttr):

class pre​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class width​(ll.xist.xsc.IntAttr):

class blockquote​(ll.xist.xsc.Element):

A section that is quoted from another source.

class Attrs​(GlobalAttrs):

class cite​(ll.xist.xsc.URLAttr):

The source address of the quote.

class ol​(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​(GlobalAttrs):

class type​(ll.xist.xsc.TextAttr):

The kind of marker to use in the list.

class reversed​(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​(ll.xist.xsc.TextAttr):

The ordinal value of the first list item.

class compact​(ll.xist.xsc.BoolAttr):

class ul​(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​(GlobalAttrs):

class type​(ll.xist.xsc.TextAttr):

class compact​(ll.xist.xsc.BoolAttr):

class li​(ll.xist.xsc.Element):

A list item.

class Attrs​(GlobalAttrs):

class type​(ll.xist.xsc.TextAttr):

class value​(ll.xist.xsc.IntAttr):

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

class dl​(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​(GlobalAttrs):

class compact​(ll.xist.xsc.BoolAttr):

class dt​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class dd​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class figure​(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​(GlobalAttrs):

class figcaption​(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​(GlobalAttrs):

class div​(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​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class a​(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​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

class href​(ll.xist.xsc.URLAttr):

Destination of the link.

class target​(ll.xist.xsc.TextAttr):

The name of the browsing context for this link.

class rel​(ll.xist.xsc.TextAttr):

The type of relationship the link has to the document.

class media​(MediaAttr):

The media the resource applies to.

class hreflang​(ll.xist.xsc.TextAttr):

The language of the linked resource.

class type​(ll.xist.xsc.TextAttr):

The MIME type of the linked resource.

class rev​(ll.xist.xsc.TextAttr):

class charset​(ll.xist.xsc.TextAttr):

class coords​(ll.xist.xsc.TextAttr):

class shape​(ll.xist.xsc.TextAttr):

class em​(ll.xist.xsc.Element):

Stress emphasis.

class Attrs​(GlobalAttrs):

class strong​(ll.xist.xsc.Element):

Strong importance.

class Attrs​(GlobalAttrs):

class small​(ll.xist.xsc.Element):

Side comments such as small print.

class Attrs​(GlobalAttrs):

class s​(ll.xist.xsc.Element):

Contents that are no longer accurate or no longer relevant.

class Attrs​(GlobalAttrs):

class cite​(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​(GlobalAttrs):

class q​(ll.xist.xsc.Element):

Some phrasing content quoted from another source.

class Attrs​(GlobalAttrs):

class cite​(ll.xist.xsc.URLAttr):

The source address of the quote.

class dfn​(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​(GlobalAttrs):

class abbr​(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​(GlobalAttrs):

class time​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class datetime​(ll.xist.xsc.TextAttr):

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

class code​(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​(GlobalAttrs):

class var​(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​(GlobalAttrs):

class samp​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class kbd​(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​(GlobalAttrs):

class sub​(ll.xist.xsc.Element):

A subscript.

class Attrs​(GlobalAttrs):

class sup​(ll.xist.xsc.Element):

A superscript.

class Attrs​(GlobalAttrs):

class i​(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​(GlobalAttrs):

class b​(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​(GlobalAttrs):

class u​(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​(GlobalAttrs):

class mark​(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​(GlobalAttrs):

class ruby​(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​(GlobalAttrs):

class rt​(ll.xist.xsc.Element):

The ruby text component of a ruby annotation.

class Attrs​(GlobalAttrs):

class rp​(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​(GlobalAttrs):

class bdi​(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​(GlobalAttrs):

class bdo​(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​(GlobalAttrs):

class dir​(ll.xist.xsc.TextAttr):

The element's text directionality.

class span​(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​(GlobalAttrs):

class br​(ll.xist.xsc.Element):

A line break.

class Attrs​(GlobalAttrs):

class clear​(ll.xist.xsc.TextAttr):

class wbr​(ll.xist.xsc.Element):

A line break opportunity.

class Attrs​(GlobalAttrs):

class ins​(ll.xist.xsc.Element):

An addition to the document.

class Attrs​(GlobalAttrs):

class cite​(ll.xist.xsc.URLAttr):

The address of a document that explains the change.

class datetime​(ll.xist.xsc.TextAttr):

The time and date of the change.

class del_​(ll.xist.xsc.Element):

A removal from the document.

class Attrs​(GlobalAttrs):

class cite​(ll.xist.xsc.URLAttr):

The address of a document that explains the change.

class datetime​(ll.xist.xsc.TextAttr):

The time and date of the change.

class img​(ll.xist.xsc.Element):

An image.

class Attrs​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

class src​(ll.xist.xsc.URLAttr):

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

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.IntAttr):

The width of the image.

class alt​(ll.xist.xsc.TextAttr):

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

class crossorigin​(ll.xist.xsc.TextAttr):

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

class usemap​(ll.xist.xsc.TextAttr):

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

class ismap​(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 height​(ll.xist.xsc.IntAttr):

The height of the image.

class longdesc​(ll.xist.xsc.URLAttr):

class border​(ll.xist.xsc.TextAttr):

class hspace​(ll.xist.xsc.IntAttr):

class vspace​(ll.xist.xsc.IntAttr):

class lowsrc​(ll.xist.xsc.URLAttr):

class iframe​(ll.xist.xsc.Element):

A nested browsing context.

class Attrs​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

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

class src​(ll.xist.xsc.URLAttr):

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

class marginwidth​(ll.xist.xsc.IntAttr):

class marginheight​(ll.xist.xsc.IntAttr):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.IntAttr):

The width of the iframe.

class height​(ll.xist.xsc.IntAttr):

The height of the iframe.

class longdesc​(ll.xist.xsc.URLAttr):

class hspace​(ll.xist.xsc.IntAttr):

class vspace​(ll.xist.xsc.IntAttr):

class srcdoc​(ll.xist.xsc.TextAttr):

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

class sandbox​(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​(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 frameborder​(ll.xist.xsc.TextAttr):

class noresize​(ll.xist.xsc.BoolAttr):

class scrolling​(ll.xist.xsc.TextAttr):

class bordercolor​(ll.xist.xsc.ColorAttr):

class allowfullscreen​(ll.xist.xsc.TextAttr):

class embed​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class href​(ll.xist.xsc.URLAttr):

class target​(ll.xist.xsc.TextAttr):

class type​(ll.xist.xsc.TextAttr):

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

class src​(ll.xist.xsc.URLAttr):

The address of the resource being embedded.

class bgcolor​(ll.xist.xsc.ColorAttr):

class width​(ll.xist.xsc.IntAttr):

The width of the embedded resource.

class height​(ll.xist.xsc.IntAttr):

The height of the embedded resource.

class border​(ll.xist.xsc.IntAttr):

class allowfullscreen​(ll.xist.xsc.TextAttr):

class controller​(ll.xist.xsc.TextAttr):

class pluginspage​(ll.xist.xsc.URLAttr):

class quality​(ll.xist.xsc.TextAttr):

class flashvars​(ll.xist.xsc.TextAttr):

class menu​(ll.xist.xsc.TextAttr):

class object​(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​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

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

class type​(ll.xist.xsc.TextAttr):

The MIME type of the resource.

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.IntAttr):

The width of the object.

class usemap​(ll.xist.xsc.TextAttr):

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

class height​(ll.xist.xsc.IntAttr):

The height of the object.

class border​(ll.xist.xsc.IntAttr):

class hspace​(ll.xist.xsc.IntAttr):

class vspace​(ll.xist.xsc.IntAttr):

class typemustmatch​(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 declare​(ll.xist.xsc.BoolAttr):

class classid​(ll.xist.xsc.URLAttr):

class codebase​(ll.xist.xsc.URLAttr):

class codetype​(ll.xist.xsc.TextAttr):

class archive​(ll.xist.xsc.TextAttr):

class standby​(ll.xist.xsc.TextAttr):

class form​(ll.xist.xsc.TextAttr):

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

class data​(ll.xist.xsc.URLAttr):

The address of the resource.

class param​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

The name of the parameter.

class type​(ll.xist.xsc.TextAttr):

class value​(ll.xist.xsc.TextAttr):

The value of the parameter.

class valuetype​(ll.xist.xsc.TextAttr):

class video​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class src​(ll.xist.xsc.URLAttr):

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

class width​(ll.xist.xsc.IntAttr):

The width of the video element.

class crossorigin​(ll.xist.xsc.TextAttr):

Specifies the origin behaviour for fetching the media resource.

class height​(ll.xist.xsc.IntAttr):

The height of the video element.

class poster​(ll.xist.xsc.URLAttr):

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

class preload​(ll.xist.xsc.TextAttr):

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

class autoplay​(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​(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​(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​(ll.xist.xsc.BoolAttr):

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

class controls​(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 audio​(ll.xist.xsc.Element):

A sound or audio stream.

class Attrs​(GlobalAttrs):

class src​(ll.xist.xsc.URLAttr):

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

class crossorigin​(ll.xist.xsc.TextAttr):

Specifies the origin behaviour for fetching the media resource.

class preload​(ll.xist.xsc.TextAttr):

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

class autoplay​(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​(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​(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​(ll.xist.xsc.BoolAttr):

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

class controls​(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 source​(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​(GlobalAttrs):

class media​(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 type​(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 src​(ll.xist.xsc.URLAttr):

The address of the media resource.

class track​(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​(GlobalAttrs):

class src​(ll.xist.xsc.URLAttr):

The address of the text track data.

class kind​(ll.xist.xsc.TextAttr):

The type of the track.

class srclang​(ll.xist.xsc.TextAttr):

The language of the text track data.

class default​(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 label​(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 canvas​(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​(GlobalAttrs):

class width​(ll.xist.xsc.IntAttr):

The width of the canvas element.

class height​(ll.xist.xsc.IntAttr):

The height of the canvas element.

class map​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class class_​(ll.xist.xsc.TextAttr):

class name​(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 area​(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​(GlobalAttrs):

class href​(ll.xist.xsc.TextAttr):

Destination of the link.

class target​(ll.xist.xsc.TextAttr):

The name of the browsing context for this link.

class rel​(ll.xist.xsc.TextAttr):

The type of relationship the link has to the document.

class media​(MediaAttr):

The media the resource applies to.

class hreflang​(ll.xist.xsc.TextAttr):

The language of the linked resource.

class type​(ll.xist.xsc.TextAttr):

The MIME type of the linked resource.

class coords​(ll.xist.xsc.TextAttr):

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

class shape​(ll.xist.xsc.TextAttr):

The shape of the area.

class alt​(ll.xist.xsc.TextAttr):

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

class nohref​(ll.xist.xsc.BoolAttr):

class table​(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​(GlobalAttrs):

class background​(ll.xist.xsc.URLAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.TextAttr):

class height​(ll.xist.xsc.TextAttr):

class border​(ll.xist.xsc.TextAttr):

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

class hspace​(ll.xist.xsc.IntAttr):

class vspace​(ll.xist.xsc.IntAttr):

class bordercolor​(ll.xist.xsc.ColorAttr):

class rules​(ll.xist.xsc.TextAttr):

class cellspacing​(ll.xist.xsc.IntAttr):

class cellpadding​(ll.xist.xsc.IntAttr):

class summary​(ll.xist.xsc.TextAttr):

class frame​(ll.xist.xsc.TextAttr):

class caption​(ll.xist.xsc.Element):

The title of the table that is its parent.

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class colgroup​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.TextAttr):

class span​(ll.xist.xsc.IntAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.TextAttr):

class col​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.TextAttr):

class span​(ll.xist.xsc.IntAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.TextAttr):

class tbody​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.TextAttr):

class thead​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.TextAttr):

class tfoot​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.TextAttr):

class tr​(ll.xist.xsc.Element):

A row of cells in a table.

class Attrs​(GlobalAttrs):

class background​(ll.xist.xsc.URLAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.IntAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.IntAttr):

class nowrap​(ll.xist.xsc.BoolAttr):

class td​(ll.xist.xsc.Element):

A data cell in a table.

class Attrs​(GlobalAttrs):

class background​(ll.xist.xsc.URLAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.IntAttr):

class abbr​(ll.xist.xsc.TextAttr):

class height​(ll.xist.xsc.IntAttr):

class bordercolor​(ll.xist.xsc.ColorAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.IntAttr):

class nowrap​(ll.xist.xsc.BoolAttr):

class colspan​(ll.xist.xsc.IntAttr):

The number of columns that the cell is to span.

class rowspan​(ll.xist.xsc.IntAttr):

The number of rows that the cell is to span.

class headers​(ll.xist.xsc.TextAttr):

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

class axis​(ll.xist.xsc.TextAttr):

class scope​(ll.xist.xsc.TextAttr):

class th​(ll.xist.xsc.Element):

A header cell in a table.

class Attrs​(GlobalAttrs):

class background​(ll.xist.xsc.URLAttr):

class bgcolor​(ll.xist.xsc.ColorAttr):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.IntAttr):

class abbr​(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 height​(ll.xist.xsc.IntAttr):

class bordercolor​(ll.xist.xsc.ColorAttr):

class valign​(ll.xist.xsc.TextAttr):

class char​(ll.xist.xsc.TextAttr):

class charoff​(ll.xist.xsc.IntAttr):

class nowrap​(ll.xist.xsc.BoolAttr):

class colspan​(ll.xist.xsc.IntAttr):

The number of columns that the cell is to span.

class rowspan​(ll.xist.xsc.IntAttr):

The number of rows that the cell is to span.

class headers​(ll.xist.xsc.TextAttr):

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

class axis​(ll.xist.xsc.TextAttr):

class scope​(ll.xist.xsc.TextAttr):

Specifies to which cells the header applies.

class form​(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​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

The form's name within the forms collection.

class target​(ll.xist.xsc.TextAttr):

The name of the browsing context for the response.

class accept_charset​(ll.xist.xsc.TextAttr):

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

class action​(ll.xist.xsc.URLAttr):

The address to which this form will be submitted.

class autocomplete​(ll.xist.xsc.TextAttr):

Specifies whether autocompletion should be done for this form.

class enctype​(ll.xist.xsc.TextAttr):

The encoding algorithm to use for encoding the form data.

class method​(ll.xist.xsc.TextAttr):

The HTTP method for submitting the form.

class novalidate​(ll.xist.xsc.BoolAttr):

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

class fieldset​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

The element's name.

class disabled​(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​(ll.xist.xsc.TextAttr):

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

class legend​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class align​(ll.xist.xsc.TextAttr):

class label​(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​(GlobalAttrs):

class for_​(ll.xist.xsc.TextAttr):

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

class form​(ll.xist.xsc.TextAttr):

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

class input​(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​(CommonFormAttrs):

class type​(ll.xist.xsc.TextAttr):

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

class src​(ll.xist.xsc.TextAttr):

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

class align​(ll.xist.xsc.TextAttr):

class size​(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 width​(ll.xist.xsc.TextAttr):

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

class value​(ll.xist.xsc.TextAttr):

The default value of the input element.

class alt​(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 usemap​(ll.xist.xsc.URLAttr):

class height​(ll.xist.xsc.TextAttr):

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

class border​(ll.xist.xsc.IntAttr):

class autocomplete​(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 accept​(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 checked​(ll.xist.xsc.BoolAttr):

Gives the default checkedness of the input element.

class dirname​(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​(ll.xist.xsc.TextAttr):

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

class formenctype​(ll.xist.xsc.TextAttr):

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

class formmethod​(ll.xist.xsc.TextAttr):

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

class formnovalidate​(ll.xist.xsc.BoolAttr):

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

class formtarget​(ll.xist.xsc.TextAttr):

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

class list​(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​(ll.xist.xsc.TextAttr):

Indicates the allowed maximum value for the element.

class maxlength​(ll.xist.xsc.IntAttr):

The maximum length of the value.

class min​(ll.xist.xsc.TextAttr):

Indicates the allowed minimum value for the element.

class multiple​(ll.xist.xsc.TextAttr):

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

class pattern​(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​(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​(ll.xist.xsc.BoolAttr):

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

class required​(ll.xist.xsc.BoolAttr):

When specified, the element is required.

class step​(ll.xist.xsc.TextAttr):

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

class button​(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​(CommonFormAttrs):

class type​(ll.xist.xsc.TextAttr):

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

class value​(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 formaction​(ll.xist.xsc.TextAttr):

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

class formenctype​(ll.xist.xsc.TextAttr):

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

class formmethod​(ll.xist.xsc.TextAttr):

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

class formnovalidate​(ll.xist.xsc.BoolAttr):

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

class formtarget​(ll.xist.xsc.TextAttr):

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

class select​(ll.xist.xsc.Element):

A control for selecting amongst a set of options.

class Attrs​(CommonFormAttrs):

class size​(ll.xist.xsc.IntAttr):

The number of options to show to the user.

class multiple​(ll.xist.xsc.TextAttr):

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

class required​(ll.xist.xsc.BoolAttr):

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

class rows​(ll.xist.xsc.TextAttr):

class datalist​(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​(GlobalAttrs):

class optgroup​(ll.xist.xsc.Element):

A group of option elements with a common label.

class Attrs​(GlobalAttrs):

class disabled​(ll.xist.xsc.BoolAttr):

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

class label​(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 option​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class disabled​(ll.xist.xsc.BoolAttr):

Specifies that the option should be disabled.

class value​(ll.xist.xsc.TextAttr):

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

class label​(ll.xist.xsc.TextAttr):

A label for the option element.

class selected​(ll.xist.xsc.BoolAttr):

The default selectedness of the option element.

class textarea​(ll.xist.xsc.Element):

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

class Attrs​(CommonFormAttrs):

class dirname​(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​(ll.xist.xsc.IntAttr):

The maximum length of the value.

class placeholder​(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​(ll.xist.xsc.BoolAttr):

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

class required​(ll.xist.xsc.BoolAttr):

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

class rows​(ll.xist.xsc.IntAttr):

The number of lines to show.

class cols​(ll.xist.xsc.IntAttr):

The expected maximum number of characters per line.

class wrap​(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 keygen​(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​(CommonFormAttrs):

class challenge​(ll.xist.xsc.TextAttr):

Its value will be packaged with the submitted key.

class keytype​(ll.xist.xsc.TextAttr):

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

class output​(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​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

The element's name.

class for_​(ll.xist.xsc.TextAttr):

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

class form​(ll.xist.xsc.TextAttr):

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

class progress​(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​(GlobalAttrs):

class value​(ll.xist.xsc.FloatAttr):

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

class max​(ll.xist.xsc.FloatAttr):

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

class meter​(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​(GlobalAttrs):

class value​(ll.xist.xsc.FloatAttr):

The value to have the gauge indicate as the "measured" value.

class max​(ll.xist.xsc.FloatAttr):

The lower bound of the range.

class min​(ll.xist.xsc.FloatAttr):

The lower bound of the range.

class low​(ll.xist.xsc.FloatAttr):

The range that is considered to be the "low" part.

class high​(ll.xist.xsc.FloatAttr):

The range that is considered to be the "high" part.

class optimum​(ll.xist.xsc.FloatAttr):

The position that is "optimum".

class details​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class open​(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 summary​(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​(GlobalAttrs):

class command​(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​(GlobalAttrs):

class disabled​(ll.xist.xsc.BoolAttr):

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

class type​(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​(ll.xist.xsc.TextAttr):

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

class checked​(ll.xist.xsc.BoolAttr):

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

class command​(ll.xist.xsc.TextAttr):

The ID of the master command.

class icon​(ll.xist.xsc.URLAttr):

A picture that represents the command.

class radiogroup​(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 dialog​(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​(GlobalAttrs):

class open​(ll.xist.xsc.BoolAttr):

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

class data​(ll.xist.xsc.Element):

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

class Attrs​(ll.xist.xsc.Attrs):

class itemprop​(ll.xist.xsc.TextAttr):

Microdata attribute: The name of an item property.

class value​(ll.xist.xsc.TextAttr):

Microdata attribute: The value of an item property.

class noframes​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class dir​(ll.xist.xsc.Element):

Multiple column list (deprecated).

class Attrs​(GlobalAttrs):

class compact​(ll.xist.xsc.BoolAttr):

class center​(ll.xist.xsc.Element):

Centered block level element (deprecated).

class Attrs​(GlobalAttrs):

class acronym​(ll.xist.xsc.Element):

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

class Attrs​(GlobalAttrs):

class tt​(ll.xist.xsc.Element):

Teletype or monospaced text style (deprecated).

class Attrs​(GlobalAttrs):

class big​(ll.xist.xsc.Element):

Large text style (deprecated).

class Attrs​(GlobalAttrs):

class strike​(ll.xist.xsc.Element):

Strike-through text style (deprecated).

class Attrs​(GlobalAttrs):

class basefont​(ll.xist.xsc.Element):

Base font size (deprecated).

class Attrs​(GlobalAttrs):

class size​(ll.xist.xsc.TextAttr):

class color​(ll.xist.xsc.ColorAttr):

class face​(ll.xist.xsc.TextAttr):

class font​(ll.xist.xsc.Element):

Local change to font (deprecated).

class Attrs​(GlobalAttrs):

class size​(ll.xist.xsc.TextAttr):

class color​(ll.xist.xsc.ColorAttr):

class face​(ll.xist.xsc.TextAttr):

class applet​(ll.xist.xsc.Element):

Java applet (deprecated).

class Attrs​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

class align​(ll.xist.xsc.TextAttr):

class width​(ll.xist.xsc.TextAttr):

class code​(ll.xist.xsc.TextAttr):

class alt​(ll.xist.xsc.TextAttr):

class height​(ll.xist.xsc.TextAttr):

class hspace​(ll.xist.xsc.IntAttr):

class vspace​(ll.xist.xsc.IntAttr):

class object​(ll.xist.xsc.TextAttr):

class codebase​(ll.xist.xsc.URLAttr):

class archive​(ll.xist.xsc.TextAttr):

class isindex​(ll.xist.xsc.Element):

(deprecated).

class Attrs​(GlobalAttrs):

class prompt​(ll.xist.xsc.TextAttr):

class frameset​(ll.xist.xsc.Element):

Window subdivision (deprecated)

class Attrs​(GlobalAttrs):

class onload​(ll.xist.xsc.TextAttr):

class onunload​(ll.xist.xsc.TextAttr):

class marginwidth​(ll.xist.xsc.IntAttr):

class marginheight​(ll.xist.xsc.IntAttr):

class border​(ll.xist.xsc.IntAttr):

class frameborder​(ll.xist.xsc.IntAttr):

class noresize​(ll.xist.xsc.BoolAttr):

class scrolling​(ll.xist.xsc.TextAttr):

class rows​(ll.xist.xsc.TextAttr):

class cols​(ll.xist.xsc.TextAttr):

class framespacing​(ll.xist.xsc.TextAttr):

class frame​(ll.xist.xsc.Element):

Subwindow (deprecated).

class Attrs​(GlobalAttrs):

class name​(ll.xist.xsc.TextAttr):

class src​(ll.xist.xsc.URLAttr):

class marginwidth​(ll.xist.xsc.IntAttr):

class marginheight​(ll.xist.xsc.IntAttr):

class longdesc​(ll.xist.xsc.TextAttr):

class border​(ll.xist.xsc.IntAttr):

class frameborder​(ll.xist.xsc.IntAttr):

class noresize​(ll.xist.xsc.BoolAttr):

class scrolling​(ll.xist.xsc.TextAttr):

class framespacing​(ll.xist.xsc.TextAttr):

class nobr​(ll.xist.xsc.Element):

Prevents line breaks (deprecated).

class Attrs​(GlobalAttrs):

class _PlainTextFormatter​(object):

class Style​(object):

def __init__​(self, display='inline', top=0, bottom=0, left=('',), right=('',), whitespace='normal', overline=None, underline=None, prefix='', suffix=''):

def margins​(self, name, level, pos=None, last=None):

class Margins​(object):

def __init__​(self, style, name, level, pos, last):

def repeatlast​(self, items):

def __init__​(self, node, width=80, **styles):

def push​(self, name, pos=None, last=None):

Add an additional box around any further text. name is the name of the box (normally the name of the HTML element itself ("ul", "dd", "pre", "blockquote" etc.) For li element inside ul elements the name is ul_li and for li elements inside ol elements it is ol_li. For a li element inside an ol element pos specifies the index of the li element among its siblings (starting at 1) and last specifies the index of the last li (i.e. the total number of lis inside the ol).

This additional box might also specify an additonal number of blank lines before and after its content and it might also introduce a new line wrapping mode and it might specify underlining (for h1-h6 elements.)

Consecutive blank lines (e.g. from the bottom of the previous box and the top of this one), will not add up, instead the largest of the values will be used.

def pop​(self):

Remove the innermost box created by a previous push call. All text collected so far will be output taking the current margins, block spacing and whitespace mode into account. After the text is output the block spacing is reset to 0. If there's no collected text nothing will be output and the block spacing will not be reset.

def text​(self, text):

Add the text text to the output. All text will be collected until a call to push or pop is done.

def flush​(self):

def leftmarginwidth​(self):

def rightmarginwidth​(self):

def __iter__​(self):

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

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

width is the maximum line length. If width is 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 semantic 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.)

Alternate versions   Text   XIST   Python