Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move the sanitizer to purely be a filter. #110

Merged
merged 4 commits into from
May 18, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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