1 Tests that accessing the innerHTML property of a text node encodes harmful entities which can result in cross site scripting.
3 On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
6 PASS innerHTML("script") is "/*"'&<> "'&<> \"'&<> */"
7 PASS innerHTML("style") is "/*"'&<> "'&<> \"'&<> */"
8 PASS innerHTML("textarea") is "/*\"'&<> \"'&<> \"'&<> */"
9 PASS innerHTML("xmp") is "/*"'&<> "'&<> \"'&<> */"
10 PASS outerHTML("script") is "<script id=\"script\">/*"'&<> "'&<> \"'&<> */</script>"
11 PASS outerHTML("style") is "<style id=\"style\">/*"'&<> "'&<> \"'&<> */</style>"
12 PASS outerHTML("textarea") is "<textarea id=\"textarea\">/*\"'&<> \"'&<> \"'&<> */</textarea>"
13 PASS outerHTML("xmp") is "<xmp id=\"xmp\">/*"'&<> "'&<> \"'&<> */</xmp>"
14 PASS successfullyParsed is true