From dec87676f410a10ccb53acd357509edbcedb1b76 Mon Sep 17 00:00:00 2001 From: Arthur de Jong <arthur@arthurdejong.org> Date: Sun, 15 Jun 2008 21:00:59 +0000 Subject: do not require src attribute for parsing inline style tags git-svn-id: http://arthurdejong.org/svn/webcheck/webcheck@379 86f53f14-5ff3-0310-afe5-9b438ce3f40c --- parsers/html/beautifulsoup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parsers/html/beautifulsoup.py b/parsers/html/beautifulsoup.py index 31e2e74..fb39873 100644 --- a/parsers/html/beautifulsoup.py +++ b/parsers/html/beautifulsoup.py @@ -159,7 +159,7 @@ def parse(content, link): if embed: link.add_embed(urlparse.urljoin(base, embed)) # <style>content</style> - for style in soup.findAll('style', src=True): + for style in soup.findAll('style'): if style.string: # delegate handling of inline css to css module import parsers.css -- cgit v1.2.3