Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cb66f2

Browse files
committed
Merge pull request#110 from gsnedders/sanitizer-fixes-72
Move the sanitizer to purely be a filter; r=nobody!
2 parentsf6741ea +57dfcae commit8cb66f2

12 files changed

+1449
-397
lines changed

‎CHANGES.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ Released on XXX
4040
and the new default), and "spec" (the old False value, and the old
4141
default).**
4242

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

4448
0.9999999/1.0b8
4549
~~~~~~~~~~~~~~~

‎html5lib/filters/optionaltags.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ def slider(self):
1111
yieldprevious2,previous1,token
1212
previous2=previous1
1313
previous1=token
14-
yieldprevious2,previous1,None
14+
ifprevious1isnotNone:
15+
yieldprevious2,previous1,None
1516

1617
def__iter__(self):
1718
forprevious,token,nextinself.slider():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp