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

Commitf9f370e

Browse files
committed
Consistency: character consumption within double-escaped state
1 parenta912842 commitf9f370e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

‎html5lib/_tokenizer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -781,7 +781,9 @@ def scriptDataDoubleEscapedState(self):
781781
"eof-in-script-in-script"})
782782
self.state=self.dataState
783783
else:
784-
self.tokenQueue.append({"type":tokenTypes["Characters"],"data":data})
784+
chars=self.stream.charsUntil(("<","-","\u0000"))
785+
self.tokenQueue.append({"type":tokenTypes["Characters"],"data":
786+
data+chars})
785787
returnTrue
786788

787789
defscriptDataDoubleEscapedDashState(self):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp