|
|
| __init__ (self, bool namespaceHTMLElements, Optional["BeautifulSoup"] soup=None, bool store_line_numbers=True, **Any kwargs) |
| |
|
"Element" | documentClass (self) |
| |
|
None | insertDoctype (self, Dict[str, Any] token) |
| |
|
"Element" | elementClass (self, str name, str namespace) |
| |
|
"TextNode" | commentClass (self, str data) |
| |
| "Element" | fragmentClass (self) |
| |
| "Element" | getFragment (self) |
| |
|
None | appendChild (self, "Element" node) |
| |
|
"BeautifulSoup" | getDocument (self) |
| |
| None | testSerializer (self, "Element" node) |
| |
|
|
| soup |
| |
|
| parser |
| |
|
| store_line_numbers |
| |
|
|
str | soup : "BeautifulSoup" |
| |
|
Optional | parser [html5lib.HTMLParser] |
| |
◆ fragmentClass()
| "Element" bs4.builder._html5lib.TreeBuilderForHtml5lib.fragmentClass |
( |
|
self | ) |
|
This is only used by html5lib HTMLParser.parseFragment(),
which is never used by Beautiful Soup, only by the html5lib
unit tests. Since we don't currently hook into those tests,
the implementation is left blank.
◆ getFragment()
| "Element" bs4.builder._html5lib.TreeBuilderForHtml5lib.getFragment |
( |
|
self | ) |
|
This is only used by the html5lib unit tests. Since we
don't currently hook into those tests, the implementation is
left blank.
◆ testSerializer()
| None bs4.builder._html5lib.TreeBuilderForHtml5lib.testSerializer |
( |
|
self, |
|
|
"Element" |
node |
|
) |
| |
This is only used by the html5lib unit tests. Since we
don't currently hook into those tests, the implementation is
left blank.
The documentation for this class was generated from the following file:
- docs/help/help-venv/lib/python3.12/site-packages/bs4/builder/_html5lib.py