summaryrefslogtreecommitdiff
path: root/src/beautifulsoup/tests/test_html5lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/beautifulsoup/tests/test_html5lib.py')
-rw-r--r--src/beautifulsoup/tests/test_html5lib.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/beautifulsoup/tests/test_html5lib.py b/src/beautifulsoup/tests/test_html5lib.py
index 7164dac..131c999 100644
--- a/src/beautifulsoup/tests/test_html5lib.py
+++ b/src/beautifulsoup/tests/test_html5lib.py
@@ -11,6 +11,11 @@ class TestHTML5Builder(BuilderSmokeTest):
def setUp(self):
self.default_builder = HTML5TreeBuilder()
+ def test_collapsed_whitespace(self):
+ """Whitespace is preserved even in tags that don't require it."""
+ self.assertSoupEquals("<p> </p>")
+ self.assertSoupEquals("<b> </b>")
+
class TestHTML5BuilderInvalidMarkup(BuilderInvalidMarkupSmokeTest):
"""See `BuilderInvalidMarkupSmokeTest`."""