[Lxml-checkins] r43983 - lxml/branch/html/src/lxml/html
ianb at codespeak.net
ianb at codespeak.net
Fri Jun 1 22:43:28 CEST 2007
Author: ianb
Date: Fri Jun 1 22:43:22 2007
New Revision: 43983
Modified:
lxml/branch/html/src/lxml/html/clean.py
Log:
allow whitespace after expression ()
Modified: lxml/branch/html/src/lxml/html/clean.py
==============================================================================
--- lxml/branch/html/src/lxml/html/clean.py (original)
+++ lxml/branch/html/src/lxml/html/clean.py Fri Jun 1 22:43:22 2007
@@ -19,7 +19,7 @@
# This is an IE-specific construct you can have in a stylesheet to
# run some Javascript:
_css_javascript_re = re.compile(
- r'expression\(.*?\)', re.S|re.I)
+ r'expression\s*\(.*?\)', re.S|re.I)
# All kinds of schemes besides just javascript: that can cause
# execution:
More information about the lxml-checkins
mailing list