From a6f897b213bb08f0d8d8a1528937541c280abbd6 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Sun, 5 Apr 2020 15:43:58 -0400 Subject: Embedded CSS and Javascript is now stored in distinct Stylesheet and Script tags, which are ignored by methods like get_text(). This feature is not supported by the html5lib treebuilder. [bug=1868861] --- bs4/tests/test_html5lib.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'bs4/tests/test_html5lib.py') diff --git a/bs4/tests/test_html5lib.py b/bs4/tests/test_html5lib.py index 6446f84..7b0a6d4 100644 --- a/bs4/tests/test_html5lib.py +++ b/bs4/tests/test_html5lib.py @@ -182,3 +182,9 @@ class HTML5LibBuilderSmokeTest(SoupTest, HTML5TreeBuilderSmokeTest): soup = self.soup(markup, store_line_numbers=False) self.assertEqual("sourceline", soup.p.sourceline.name) self.assertEqual("sourcepos", soup.p.sourcepos.name) + + def test_special_string_containers(self): + # The html5lib tree builder doesn't support this standard feature, + # because there's no way of knowing, when a string is created, + # where in the tree it will eventually end up. + pass -- cgit v1.2.3