Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2008-06-15 23:00:59 +0200
committerArthur de Jong <arthur@arthurdejong.org>2008-06-15 23:00:59 +0200
commitdec87676f410a10ccb53acd357509edbcedb1b76 (patch)
tree3770de415a12540908390f4357d25f28f17f11f7
parentfee5fbe8fd350352a572a7278072a106ddb57d5a (diff)
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
-rw-r--r--parsers/html/beautifulsoup.py2
1 files changed, 1 insertions, 1 deletions
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