Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

Open a document with javascript in compatibility view, the js executed which is not expected

$
0
0

eg. the file name is testjs.txt, it contain the content:

<javascript> alert("777")</javascript>

In compatibility view, it shows the popup alert:

While in standard mode, it shows the content:

The popup one is a cross site scripting issue, we need to find method to fix this, why in compatibility view, it execute the js? How we prevent this?


Viewing all articles
Browse latest Browse all 3527

Trending Articles