@@ -868,6 +868,7 @@ def afterDoctypeNameState(self):
868
868
self .tokenQueue .append ({"type" : "ParseError" , "data" :
869
869
"expected-space-or-right-bracket-in-doctype" , "datavars" :
870
870
{"data" : data }})
871
+ self .currentToken ["correct" ] = False
871
872
self .state = self .states ["bogusDoctype" ]
872
873
return True
873
874
@@ -896,6 +897,7 @@ def beforeDoctypePublicIdentifierState(self):
896
897
else :
897
898
self .tokenQueue .append ({"type" : "ParseError" , "data" :
898
899
"unexpected-char-in-doctype" })
900
+ self .currentToken ["correct" ] = False
899
901
self .state = self .states ["bogusDoctype" ]
900
902
return True
901
903
@@ -961,6 +963,7 @@ def afterDoctypePublicIdentifierState(self):
961
963
else :
962
964
self .tokenQueue .append ({"type" : "ParseError" , "data" :
963
965
"unexpected-char-in-doctype" })
966
+ self .currentToken ["correct" ] = False
964
967
self .state = self .states ["bogusDoctype" ]
965
968
return True
966
969
@@ -989,6 +992,7 @@ def beforeDoctypeSystemIdentifierState(self):
989
992
else :
990
993
self .tokenQueue .append ({"type" : "ParseError" , "data" :
991
994
"unexpected-char-in-doctype" })
995
+ self .currentToken ["correct" ] = False
992
996
self .state = self .states ["bogusDoctype" ]
993
997
return True
994
998
@@ -1053,7 +1057,6 @@ def afterDoctypeSystemIdentifierState(self):
1053
1057
1054
1058
def bogusDoctypeState (self ):
1055
1059
data = self .stream .char ()
1056
- self .currentToken ["correct" ] = False
1057
1060
if data == u">" :
1058
1061
self .tokenQueue .append (self .currentToken )
1059
1062
self .state = self .states ["data" ]
0 commit comments