Skip to content

Instantly share code, notes, and snippets.

@cognitom
Created April 25, 2012 18:42
Show Gist options
  • Select an option

  • Save cognitom/2492097 to your computer and use it in GitHub Desktop.

Select an option

Save cognitom/2492097 to your computer and use it in GitHub Desktop.
Safari doesn't say "PASS"
<!doctype html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.js"></script>
</head>
<body>
<script>
url = 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.engadget.com/rss.xml&callback=?';
$.getJSON(url, function(){
alert('PASS');
});
$('head>script').remove();
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.js"></script>
</head>
<body>
<script>
url = 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.engadget.com/rss.xml&callback=?';
$.getJSON(url, function(){
alert('PASS');
});
$('body>script').remove();
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.7.js"></script>
</head>
<body>
<script>
$('script').remove();
url = 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.engadget.com/rss.xml&callback=?';
$.getJSON(url, function(){
alert('PASS');
});
</script>
</body>
</html>
<!doctype html>
<html>
<head>
<script class="jquery" src="http://code.jquery.com/jquery-1.7.js"></script>
</head>
<body>
<script>
url = 'https://ajax.googleapis.com/ajax/services/feed/load?v=1.0&q=http://www.engadget.com/rss.xml&callback=?';
$.getJSON(url, function(){
alert('PASS');
});
$('script.jquery').remove();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment