File tree 1 file changed +7
-7
lines changed 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -34,13 +34,13 @@ def __iter__(self):
34
34
raise LintError (_ ("Non-void element reported as EmptyTag token: %(tag)s" ) % {"tag" : token ["name" ]})
35
35
if type == "StartTag" :
36
36
open_elements .append (name )
37
- for name , value in token ["data" ]:
38
- if not isinstance (name , str ):
39
- raise LintError (_ ("Attribute name is not a string: %(name)r" ) % {"name" : name })
40
- if not name :
41
- raise LintError (_ ("Empty attribute name" ))
42
- if not isinstance (value , str ):
43
- raise LintError (_ ("Attribute value is not a string: %(value)r" ) % {"value" : value })
37
+ for name , value in token ["data" ]:
38
+ if not isinstance (name , str ):
39
+ raise LintError (_ ("Attribute name is not a string: %(name)r" ) % {"name" : name })
40
+ if not name :
41
+ raise LintError (_ ("Empty attribute name" ))
42
+ if not isinstance (value , str ):
43
+ raise LintError (_ ("Attribute value is not a string: %(value)r" ) % {"value" : value })
44
44
if name in cdataElements :
45
45
contentModelFlag = "CDATA"
46
46
elif name in rcdataElements :
You can’t perform that action at this time.
0 commit comments