lesscode.org


HTMLSerializer


Attributes

a boolean_attributes

set(['compact', 'defer', 'checked', 'nohref', 'selected', 'ismap', 'disabled', 'noshade', 'noresize', 'multiple', 'nowrap', 'declare'])

a doctype

('HTML',
 '-//W3C//DTD HTML 4.01 Transitional//EN',
 'http://www.w3.org/TR/html4/loose.dtd')

a elements_with_pcdata

set(['fieldset', 'option', 'textarea', 'title'])

a empty_elements

set(['img', 'area', 'basefont', 'frame', 'isindex', 'meta', 'param', 'hr', 'base', 'link', 'br', 'input', 'col'])

a encoding

'utf-8'

a namespaces

{'http://purl.org/atom/ns#': 'atom',
 'http://purl.org/rss/1.0/': 'rss',
 'http://www.w3.org/1999/02/22-rdf-syntax-ns#': 'rdf',
 'http://www.w3.org/1999/xhtml': 'html',
 'http://www.w3.org/XML/1998/namespace': 'xml'}

a noescape_elements

set(['style', 'script'])

Methods

f __init__(self, encoding='utf-8', doctype=None, transpose=None) ...

See the source for more information.