class TestHTML5LibBuilder(SoupTest, HTML5TreeBuilderSmokeTest): (source)
See ``HTML5TreeBuilderSmokeTest``.
Method | test |
Undocumented |
Method | test |
html5lib inserts <tbody> tags where other parsers don't. |
Method | test |
Test that empty comment does not break structure. |
Method | test |
Test that extraction does not destroy the tree. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Processing instructions become comments. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Verify that we keep the two whitespace nodes in this document distinct when reparenting the adjacent <tbody> tags. |
Method | test |
Undocumented |
Method | test |
Parsers should be able to work with SoupStrainers. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Property | default |
Undocumented |
Inherited from SoupTest
:
Method | assert |
Make sure that the given tags have the correct text. |
Method | assert |
Make sure that the given tags have the correct IDs. |
Method | assert |
Parse some markup using Beautiful Soup and verify that the output markup is as expected. |
Method | assert |
Ensure that next_element and previous_element are properly set for all descendants of the given element. |
Method | document |
Turn an HTML fragment into a document. |
Method | linkage |
Ensure proper linkage throughout the document. |
Method | soup |
Build a Beautiful Soup object from markup. |
Inherited from HTML5TreeBuilderSmokeTest
(via SoupTest
):
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
A real XHTML document should come out more or less the same as it went in. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Inherited from HTMLTreeBuilderSmokeTest
(via SoupTest
, HTML5TreeBuilderSmokeTest
):
Method | assert |
Assert that a given doctype string is handled correctly. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Parsers don't need to *understand* namespaces, but at the very least they should not choke on namespaces or lose data. |
Method | test |
A <br> tag is designated as an empty-element tag. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Make sure you can copy the tree builder. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Verify consistent handling of empty-element tags, no matter how they come in through the markup. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Prevent recurrence of a bug in the html5lib treebuilder. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Mostly to prevent a recurrence of a bug in the html5lib treebuilder. |
Method | test |
Prevent recurrence of a bug in the html5lib treebuilder. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Block elements can be nested. |
Method | test |
Undocumented |
Method | test |
Inline elements can be nested indefinitely. |
Method | test |
Undocumented |
Method | test |
Make sure normal, everyday HTML doctypes are handled correctly. |
Method | test |
Undocumented |
Method | test |
A <p> tag is never designated as an empty-element tag. |
Method | test |
Undocumented |
Method | test |
Whitespace must be preserved in <pre> and <textarea> tags, even if that would mean not prettifying the markup. |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
A tag that's not closed by the end of the document should be closed. |
Method | test |
Test the worst case (currently) for linking issues. |
Method | _document |
Generate and parse a document with the given doctype. |
Inherited from TreeBuilderSmokeTest
(via SoupTest
, HTML5TreeBuilderSmokeTest
, HTMLTreeBuilderSmokeTest
):
Method | test |
Undocumented |
Method | test |
Undocumented |
Method | test |
Undocumented |
Test that empty comment does not break structure. https://bugs.launchpad.net/beautifulsoup/+bug/1806598
Test that extraction does not destroy the tree. https://bugs.launchpad.net/beautifulsoup/+bug/1782928
Verify that we keep the two whitespace nodes in this document distinct when reparenting the adjacent <tbody> tags.