Orbits  1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Macros Pages
Public Member Functions | Static Public Attributes | List of all members
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin Class Reference
Inheritance diagram for pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin:
_object pip._vendor.html5lib.sanitizer.HTMLSanitizer

Public Member Functions

def sanitize_token
 
def allowed_token
 
def disallowed_token
 
def sanitize_css
 

Static Public Attributes

list acceptable_elements
 
list mathml_elements
 
list svg_elements
 
list acceptable_attributes
 
list mathml_attributes
 
list svg_attributes
 
list attr_val_is_uri
 
list svg_attr_val_allows_ref
 
list svg_allow_local_href
 
list acceptable_css_properties
 
list acceptable_css_keywords
 
list acceptable_svg_properties
 
list acceptable_protocols
 
 allowed_elements = acceptable_elements+mathml_elements+svg_elements
 
 allowed_attributes = acceptable_attributes+mathml_attributes+svg_attributes
 
 allowed_css_properties = acceptable_css_properties
 
 allowed_css_keywords = acceptable_css_keywords
 
 allowed_svg_properties = acceptable_svg_properties
 
 allowed_protocols = acceptable_protocols
 

Detailed Description

sanitization of XHTML+MathML+SVG and of inline style attributes.

Member Function Documentation

def pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_token (   self,
  token,
  token_type 
)
def pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.disallowed_token (   self,
  token,
  token_type 
)
def pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.sanitize_css (   self,
  style 
)
def pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.sanitize_token (   self,
  token 
)

Member Data Documentation

list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.acceptable_attributes
static
Initial value:
1 = ['abbr', 'accept', 'accept-charset', 'accesskey',
2  'action', 'align', 'alt', 'autocomplete', 'autofocus', 'axis',
3  'background', 'balance', 'bgcolor', 'bgproperties', 'border',
4  'bordercolor', 'bordercolordark', 'bordercolorlight', 'bottompadding',
5  'cellpadding', 'cellspacing', 'ch', 'challenge', 'char', 'charoff',
6  'choff', 'charset', 'checked', 'cite', 'class', 'clear', 'color',
7  'cols', 'colspan', 'compact', 'contenteditable', 'controls', 'coords',
8  'data', 'datafld', 'datapagesize', 'datasrc', 'datetime', 'default',
9  'delay', 'dir', 'disabled', 'draggable', 'dynsrc', 'enctype', 'end',
10  'face', 'for', 'form', 'frame', 'galleryimg', 'gutter', 'headers',
11  'height', 'hidefocus', 'hidden', 'high', 'href', 'hreflang', 'hspace',
12  'icon', 'id', 'inputmode', 'ismap', 'keytype', 'label', 'leftspacing',
13  'lang', 'list', 'longdesc', 'loop', 'loopcount', 'loopend',
14  'loopstart', 'low', 'lowsrc', 'max', 'maxlength', 'media', 'method',
15  'min', 'multiple', 'name', 'nohref', 'noshade', 'nowrap', 'open',
16  'optimum', 'pattern', 'ping', 'point-size', 'poster', 'pqg', 'preload',
17  'prompt', 'radiogroup', 'readonly', 'rel', 'repeat-max', 'repeat-min',
18  'replace', 'required', 'rev', 'rightspacing', 'rows', 'rowspan',
19  'rules', 'scope', 'selected', 'shape', 'size', 'span', 'src', 'start',
20  'step', 'style', 'summary', 'suppress', 'tabindex', 'target',
21  'template', 'title', 'toppadding', 'type', 'unselectable', 'usemap',
22  'urn', 'valign', 'value', 'variable', 'volume', 'vspace', 'vrml',
23  'width', 'wrap', 'xml:lang']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.acceptable_css_keywords
static
Initial value:
1 = ['auto', 'aqua', 'black', 'block', 'blue',
2  'bold', 'both', 'bottom', 'brown', 'center', 'collapse', 'dashed',
3  'dotted', 'fuchsia', 'gray', 'green', '!important', 'italic', 'left',
4  'lime', 'maroon', 'medium', 'none', 'navy', 'normal', 'nowrap', 'olive',
5  'pointer', 'purple', 'red', 'right', 'solid', 'silver', 'teal', 'top',
6  'transparent', 'underline', 'white', 'yellow']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.acceptable_css_properties
static
Initial value:
1 = ['azimuth', 'background-color',
2  'border-bottom-color', 'border-collapse', 'border-color',
3  'border-left-color', 'border-right-color', 'border-top-color', 'clear',
4  'color', 'cursor', 'direction', 'display', 'elevation', 'float', 'font',
5  'font-family', 'font-size', 'font-style', 'font-variant', 'font-weight',
6  'height', 'letter-spacing', 'line-height', 'overflow', 'pause',
7  'pause-after', 'pause-before', 'pitch', 'pitch-range', 'richness',
8  'speak', 'speak-header', 'speak-numeral', 'speak-punctuation',
9  'speech-rate', 'stress', 'text-align', 'text-decoration', 'text-indent',
10  'unicode-bidi', 'vertical-align', 'voice-family', 'volume',
11  'white-space', 'width']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.acceptable_elements
static
Initial value:
1 = ['a', 'abbr', 'acronym', 'address', 'area',
2  'article', 'aside', 'audio', 'b', 'big', 'blockquote', 'br', 'button',
3  'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup',
4  'command', 'datagrid', 'datalist', 'dd', 'del', 'details', 'dfn',
5  'dialog', 'dir', 'div', 'dl', 'dt', 'em', 'event-source', 'fieldset',
6  'figcaption', 'figure', 'footer', 'font', 'form', 'header', 'h1',
7  'h2', 'h3', 'h4', 'h5', 'h6', 'hr', 'i', 'img', 'input', 'ins',
8  'keygen', 'kbd', 'label', 'legend', 'li', 'm', 'map', 'menu', 'meter',
9  'multicol', 'nav', 'nextid', 'ol', 'output', 'optgroup', 'option',
10  'p', 'pre', 'progress', 'q', 's', 'samp', 'section', 'select',
11  'small', 'sound', 'source', 'spacer', 'span', 'strike', 'strong',
12  'sub', 'sup', 'table', 'tbody', 'td', 'textarea', 'time', 'tfoot',
13  'th', 'thead', 'tr', 'tt', 'u', 'ul', 'var', 'video']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.acceptable_protocols
static
Initial value:
1 = ['ed2k', 'ftp', 'http', 'https', 'irc',
2  'mailto', 'news', 'gopher', 'nntp', 'telnet', 'webcal',
3  'xmpp', 'callto', 'feed', 'urn', 'aim', 'rsync', 'tag',
4  'ssh', 'sftp', 'rtsp', 'afs']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.acceptable_svg_properties
static
Initial value:
1 = ['fill', 'fill-opacity', 'fill-rule',
2  'stroke', 'stroke-width', 'stroke-linecap', 'stroke-linejoin',
3  'stroke-opacity']
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_attributes = acceptable_attributes+mathml_attributes+svg_attributes
static
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_css_keywords = acceptable_css_keywords
static
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_css_properties = acceptable_css_properties
static
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_elements = acceptable_elements+mathml_elements+svg_elements
static
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_protocols = acceptable_protocols
static
pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.allowed_svg_properties = acceptable_svg_properties
static
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.attr_val_is_uri
static
Initial value:
1 = ['href', 'src', 'cite', 'action', 'longdesc', 'poster',
2  'xlink:href', 'xml:base']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.mathml_attributes
static
Initial value:
1 = ['actiontype', 'align', 'columnalign', 'columnalign',
2  'columnalign', 'columnlines', 'columnspacing', 'columnspan', 'depth',
3  'display', 'displaystyle', 'equalcolumns', 'equalrows', 'fence',
4  'fontstyle', 'fontweight', 'frame', 'height', 'linethickness', 'lspace',
5  'mathbackground', 'mathcolor', 'mathvariant', 'mathvariant', 'maxsize',
6  'minsize', 'other', 'rowalign', 'rowalign', 'rowalign', 'rowlines',
7  'rowspacing', 'rowspan', 'rspace', 'scriptlevel', 'selection',
8  'separator', 'stretchy', 'width', 'width', 'xlink:href', 'xlink:show',
9  'xlink:type', 'xmlns', 'xmlns:xlink']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.mathml_elements
static
Initial value:
1 = ['maction', 'math', 'merror', 'mfrac', 'mi',
2  'mmultiscripts', 'mn', 'mo', 'mover', 'mpadded', 'mphantom',
3  'mprescripts', 'mroot', 'mrow', 'mspace', 'msqrt', 'mstyle', 'msub',
4  'msubsup', 'msup', 'mtable', 'mtd', 'mtext', 'mtr', 'munder',
5  'munderover', 'none']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.svg_allow_local_href
static
Initial value:
1 = ['altGlyph', 'animate', 'animateColor',
2  'animateMotion', 'animateTransform', 'cursor', 'feImage', 'filter',
3  'linearGradient', 'pattern', 'radialGradient', 'textpath', 'tref',
4  'set', 'use']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.svg_attr_val_allows_ref
static
Initial value:
1 = ['clip-path', 'color-profile', 'cursor', 'fill',
2  'filter', 'marker', 'marker-start', 'marker-mid', 'marker-end',
3  'mask', 'stroke']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.svg_attributes
static
Initial value:
1 = ['accent-height', 'accumulate', 'additive', 'alphabetic',
2  'arabic-form', 'ascent', 'attributeName', 'attributeType',
3  'baseProfile', 'bbox', 'begin', 'by', 'calcMode', 'cap-height',
4  'class', 'clip-path', 'color', 'color-rendering', 'content', 'cx',
5  'cy', 'd', 'dx', 'dy', 'descent', 'display', 'dur', 'end', 'fill',
6  'fill-opacity', 'fill-rule', 'font-family', 'font-size',
7  'font-stretch', 'font-style', 'font-variant', 'font-weight', 'from',
8  'fx', 'fy', 'g1', 'g2', 'glyph-name', 'gradientUnits', 'hanging',
9  'height', 'horiz-adv-x', 'horiz-origin-x', 'id', 'ideographic', 'k',
10  'keyPoints', 'keySplines', 'keyTimes', 'lang', 'marker-end',
11  'marker-mid', 'marker-start', 'markerHeight', 'markerUnits',
12  'markerWidth', 'mathematical', 'max', 'min', 'name', 'offset',
13  'opacity', 'orient', 'origin', 'overline-position',
14  'overline-thickness', 'panose-1', 'path', 'pathLength', 'points',
15  'preserveAspectRatio', 'r', 'refX', 'refY', 'repeatCount',
16  'repeatDur', 'requiredExtensions', 'requiredFeatures', 'restart',
17  'rotate', 'rx', 'ry', 'slope', 'stemh', 'stemv', 'stop-color',
18  'stop-opacity', 'strikethrough-position', 'strikethrough-thickness',
19  'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap',
20  'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity',
21  'stroke-width', 'systemLanguage', 'target', 'text-anchor', 'to',
22  'transform', 'type', 'u1', 'u2', 'underline-position',
23  'underline-thickness', 'unicode', 'unicode-range', 'units-per-em',
24  'values', 'version', 'viewBox', 'visibility', 'width', 'widths', 'x',
25  'x-height', 'x1', 'x2', 'xlink:actuate', 'xlink:arcrole',
26  'xlink:href', 'xlink:role', 'xlink:show', 'xlink:title', 'xlink:type',
27  'xml:base', 'xml:lang', 'xml:space', 'xmlns', 'xmlns:xlink', 'y',
28  'y1', 'y2', 'zoomAndPan']
list pip._vendor.html5lib.sanitizer.HTMLSanitizerMixin.svg_elements
static
Initial value:
1 = ['a', 'animate', 'animateColor', 'animateMotion',
2  'animateTransform', 'clipPath', 'circle', 'defs', 'desc', 'ellipse',
3  'font-face', 'font-face-name', 'font-face-src', 'g', 'glyph', 'hkern',
4  'linearGradient', 'line', 'marker', 'metadata', 'missing-glyph',
5  'mpath', 'path', 'polygon', 'polyline', 'radialGradient', 'rect',
6  'set', 'stop', 'svg', 'switch', 'text', 'title', 'tspan', 'use']

The documentation for this class was generated from the following file:

Copyright 2014 Google Inc. All rights reserved.