I have seen people write code like (mix javascript and some templating):
<script>
var prefs = <%= user_prefs.to_spec_conforming_json() %>;
...
The above code looks okay, but if the json is just spec conforming, then you are exposed to a potential XSS attack.Most people that write json encoders are aware of the problem, but why publish a a spec that can potentially create serious security problems?
No, you would break the evaluation of json as javascript in old versions of IE.
Use a real parser already.
callback(JSON.parse('{ "key":"value" }'))
Or even directly parsing the string inside of the callback.[1] http://en.m.wikipedia.org/wiki/Cross-origin_resource_sharing
Why do people still care about old versions of IE?
Developing nations have a tendency to not use the latest and greatest. If reaching them is important for you/your product then you have to keep tracking this stuff.
Attention developing nations: Chromium and Firefox are completely foss. No excuse, unless you don't have an internet connection.
In which case, what do you need a web browser for?
This is based on my experience at UPS which used a single machine using IE6 and some form of web app to control start up and shut down procedures, or something to that effect. It had no Internet connection, only LAN I believe.
I did ask myself this question too and it does seem peculiar. After some thought, my only guess is the above!
South Korea is a huge example of this. When online banking first came to market, the only way to do it legally in South Korea was through ActiveX controls embedded in Internet Explorer because they had specific encryption requirements in the 1990s versus what IE or other browsers supported natively.
Even as recent as last year [1] it was a big deal in elections, with at least one candidate promising to end the legal requirements and allow banks to enter the modern age of browsers.
[1] http://blogs.wsj.com/korearealtime/2012/11/13/ahn-pledges-to...
(There's also the whole "they get infected with everything under the sun and make the rest of us deal with them", but that's not a visual issue.)
(Meta: Why have any conversation on an HN back-channel when there are comments open at the source?)
Specially now that giving in to G+ means showing up on ads.