File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,9 @@ def normalizeToken(self, token):
40
40
41
41
# For EmptyTags, process both a Start and an End tag
42
42
if token ["type" ] == "EmptyTag" :
43
+ save = self .tokenizer .contentModelFlag
43
44
self .phase .processStartTag (token ["name" ], token ["data" ])
45
+ self .tokenizer .contentModelFlag = save
44
46
token ["data" ] = {}
45
47
token ["type" ] = "EndTag"
46
48
Original file line number Diff line number Diff line change @@ -198,6 +198,16 @@ def test_script(self):
198
198
<head><title>SCRIPT</title></head>
199
199
<body>
200
200
<script>1 < 2 & 3</script>
201
+ </body></html>""" )
202
+
203
+ def test_script_src (self ):
204
+ self .assertXhtmlEquals ("""<html xmlns="http://www.w3.org/1999/xhtml">
205
+ <head><title>SCRIPT</title><script src="http://example.com"/></head>
206
+ <body>
207
+ </body></html>""" ,
208
+ """<html xmlns="http://www.w3.org/1999/xhtml">
209
+ <head><title>SCRIPT</title><script src="http://example.com"></script></head>
210
+ <body>
201
211
</body></html>""" )
202
212
203
213
def test_title (self ):
You can’t perform that action at this time.
0 commit comments