Skip to content

Commit

Permalink
Merge pull request #110 from gsnedders/sanitizer-fixes-72
Browse files Browse the repository at this point in the history
Move the sanitizer to purely be a filter; r=nobody!
  • Loading branch information
gsnedders committed May 18, 2016
2 parents f6741ea + 57dfcae commit 8cb66f2
Show file tree
Hide file tree
Showing 12 changed files with 1,449 additions and 397 deletions.
4 changes: 4 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,10 @@ Released on XXX
and the new default), and "spec" (the old False value, and the old
default).**

* **Fix #72 by rewriting the sanitizer to apply only to treewalkers
(instead of the tokenizer); as such, this will require amending all
callers of it to use it via the treewalker API.**


0.9999999/1.0b8
~~~~~~~~~~~~~~~
Expand Down
3 changes: 2 additions & 1 deletion html5lib/filters/optionaltags.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ def slider(self):
yield previous2, previous1, token
previous2 = previous1
previous1 = token
yield previous2, previous1, None
if previous1 is not None:
yield previous2, previous1, None

def __iter__(self):
for previous, token, next in self.slider():
Expand Down
Loading

0 comments on commit 8cb66f2

Please sign in to comment.