mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update web-platform-tests to revision ee82278e15570e573d87fb80179ff8231b6db61a
This commit is contained in:
parent
d23bc4f1a4
commit
83e2dc11b0
278 changed files with 13348 additions and 10515 deletions
|
@ -160,8 +160,11 @@ class HtmlWrapperHandler(WrapperHandler):
|
|||
if value == b"long":
|
||||
return '<meta name="timeout" content="long">'
|
||||
if key == b"script":
|
||||
attribute = value.decode('utf-8').replace('"', """).replace(">", ">")
|
||||
attribute = value.decode('utf-8').replace("&", "&").replace('"', """)
|
||||
return '<script src="%s"></script>' % attribute
|
||||
if key == b"title":
|
||||
value = value.decode('utf-8').replace("&", "&").replace("<", "<")
|
||||
return '<title>%s</title>' % value
|
||||
return None
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue