Javascript 降低document.domain

Javascript 降低document.domain,javascript,internet-explorer,Javascript,Internet Explorer,我做错了什么?据我所知,在IE8和IE7中使用JavaScript降低域应该是可能的,但我的代码只在Firefox中工作,并且在IE中抛出一个参数异常 <html xmlns="http://www.w3.org/1999/xhtml" > <body onload="alert(document.domain); try { document.domain = 'if.se' } catch(e) { alert(e); }; alert(document.domain);"

我做错了什么?据我所知,在IE8和IE7中使用JavaScript降低域应该是可能的,但我的代码只在Firefox中工作,并且在IE中抛出一个参数异常

<html xmlns="http://www.w3.org/1999/xhtml" >
<body onload="alert(document.domain); try { document.domain = 'if.se' } catch(e) { alert(e); }; alert(document.domain);">
</body>
</html>
编辑


问题可能是由于两个字母的域。我用三个字母的域iff.se进行了测试,结果它成功了,但是如果.se有两个字母的域失败了,那么它可能会在一次理智检查中被发现,以确保你没有尝试将document.domain设置为co.uk或类似的愚蠢行为。

这真的很令人伤心。也许你知道我在哪里可以得到关于这个问题的文档?