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

Commit9194874

Browse files
committed
changed unallow to disallow
1 parent6681550 commit9194874

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎html5lib/sanitizer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def sanitize_token(self, token):
170170
iftoken["name"]inself.allowed_elements:
171171
returnself.allowed_token(token,token_type)
172172
else:
173-
returnself.unallowed_token(token,token_type)
173+
returnself.disallowed_token(token,token_type)
174174
eliftoken_type==tokenTypes["Comment"]:
175175
pass
176176
else:
@@ -206,7 +206,7 @@ def allowed_token(self, token, token_type):
206206
token["data"]= [[name,val]forname,valinlist(attrs.items())]
207207
returntoken
208208

209-
defunallowed_token(self,token,token_type):
209+
defdisallowed_token(self,token,token_type):
210210
iftoken_type==tokenTypes["EndTag"]:
211211
token["data"]="</%s>"%token["name"]
212212
eliftoken["data"]:

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp