Add crossorigin attribute and implement step 14 of prepare a script

Add WPT test for HTMLScriptElement crossOrigin IDL attribute
This commit is contained in:
Keith Yeung
2016-06-24 14:31:00 +08:00
parent f566a8d44f
commit 4c616dad90
8 changed files with 140 additions and 226 deletions

View File

@@ -0,0 +1,10 @@
def main(request, response):
headers = [("Content-Type", "text/javascript")]
milk = request.cookies.first("milk", None)
if milk is None:
return headers, "var included = false;"
elif milk.value == "yes":
return headers, "var included = true;"
return headers, "var included = false;"