sdk/python/Templating/PyHtml5lib
Templating

PyHtml5lib

Third-party Python package module — html5lib. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.filters.whitespace.collapse_spaces()Neutral
#
Signature
filters.whitespace.collapse_spaces(text)

filters.whitespace.collapse_spaces function.

.getTreeBuilder()Neutral
#
Signature
getTreeBuilder(treeType, implementation, **kwargs)

getTreeBuilder function.

.getTreeWalker()Neutral
#
Signature
getTreeWalker(treeType, implementation, **kwargs)

getTreeWalker function.

.html5parser.adjust_attributes()Neutral
#
Signature
html5parser.adjust_attributes(token, replacements)

html5parser.adjust_attributes function.

.html5parser.getPhases()Neutral
#
Signature
html5parser.getPhases(debug)

html5parser.getPhases function.

.html5parser.impliedTagToken()Neutral
#
Signature
html5parser.impliedTagToken(name, type, attributes, selfClosing)

html5parser.impliedTagToken function.

.html5parser.method_decorator_metaclass()Neutral
#
Signature
html5parser.method_decorator_metaclass(function)

html5parser.method_decorator_metaclass function.

.html5parser.parse()Neutral
#
Signature
html5parser.parse(doc, treebuilder, namespaceHTMLElements, **kwargs)

html5parser.parse function.

.html5parser.parseFragment()Neutral
#
Signature
html5parser.parseFragment(doc, container, treebuilder, namespaceHTMLElements, **kwargs)

html5parser.parseFragment function.

.parse()Neutral
#
Signature
parse(doc, treebuilder, namespaceHTMLElements, **kwargs)

parse function.

Fully-Qualified Names

FQNField
html5libfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

rule.py
import html5lib