Ticket #501 (closed defect: fixed)
test_sanitize_remove_src_javascript fails due to HTMLParser bugfixes in cpython
| Reported by: | stefanor@… | Owned by: | cmlenz |
|---|---|---|---|
| Priority: | major | Milestone: | 0.6.1 |
| Component: | Parsing | Version: | 0.6 |
| Keywords: | Cc: |
Description
A patch to HTMLParser, for a bunch of issues related to attribute handling, landed in the cpython 2.7 branch and breaks test_sanitize_remove_src_javascript:
======================================================================
FAIL: test_sanitize_remove_src_javascript (__main__.HTMLSanitizerTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "genshi/filters/tests/test_html.py", line 485, in test_sanitize_remove_src_javascript
u'<IMG SRC=`javascript:alert("RSnake says, \'foo\'")`>')
AssertionError: ParseError not raised
----------------------------------------------------------------------
Ran 61 tests in 0.033s
FAILED (failures=1)
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
