+ n- IE中的缺陷 [英] +n- Flaw in IE
问题描述
在IE中进行测试(在IE 6.0 sp2中验证)
有没有人看过这个,除了使用html转义
之外还有解决方法吗?特殊字符,不使用IE浏览器;]
~文件1~
< html>
< head>
< title> IE + n- Flaw Tester< / title>
< / head>
< body>
< script>
window.open(" ./_ pitest.html")
window.focus()
< ; / script>
< / body>
< / html>
~文件1结束〜
>
~文件2~
< html>
< head>
< title> Wacky IE漏洞:] < / title>
< / head>
< body>
+ 1-
< ; script>
var v =" a" +" A"
< / script>
< / body>
< / html>
~文件2结束〜
注意:
- 任何insta nce + n - (其中n =整数)将导致JavaScript字符串
连接爆炸
- 在新窗口中加载有助于出错但不总是< br $>
必要
- 现在你说,但谁会投入`+ n -`?
- 。[a]想想欧洲的电话号码:[
Give this a test in IE (verified in IE 6.0 sp2)
Has anybody else seen this and is there a workaround besides escaping
with html special chars and not using IE ;]
~ file 1 ~
<html>
<head>
<title>IE +n- Flaw Tester</title>
</head>
<body>
<script>
window.open("./_pitest.html")
window.focus()
</script>
</body>
</html>
~ file 1 end ~
~ file 2 ~
<html>
<head>
<title>Wacky IE Flaw :]</title>
</head>
<body>
+1-
<script>
var v="a"+"A"
</script>
</body>
</html>
~ file 2 end ~
Notes:
- Any instance of +n - (where n=integer) will cause JavaScript string
concatenations to blow up
- Loading in new window helps error to come out but is not always
necessary
- Now you say, but who will put in `+n-`?
- .[a] Think phone numbers in Europe :[
推荐答案
Java脚本Dude写道:
Java script Dude wrote:
在IE中进行测试(在IE中验证) 6.0 sp2)
有没有人看到这个,除了使用html特殊字符转义
并且不使用IE浏览器之外还有一个解决方法;]
〜文件1~
< html>
< head>
< title> IE + n- Flaw Tester< / title>
< / head>
< body>
< script>
window.open(" ./_ pitest.html")
window.focus()
< / script>
< /身体>
< / html>
〜文件1结束〜
~f ile 2~
< html>
< head>
< title> Wacky IE漏洞:]< / title>
< / head>
< body>
+ 1-
< script>
var v =" a" +" A"
< / script>
< / body>
< / html>
〜文件2结束〜
这个''测试''绝对没有做任何事情 - 警告''v的价值''显示
''aA''如预期的那样。
注意:
- 任何+ n - 的实例(其中n =整数)会导致JavaScript字符串连接爆炸
''炸毁''?太多的好莱坞电影也许,即使是一个爆胎也会导致汽车爆炸...只要它被一个坏人驱动。
- 在新窗口中加载有助于出错,但并非总是如此
Give this a test in IE (verified in IE 6.0 sp2)
Has anybody else seen this and is there a workaround besides escaping
with html special chars and not using IE ;]
~ file 1 ~
<html>
<head>
<title>IE +n- Flaw Tester</title>
</head>
<body>
<script>
window.open("./_pitest.html")
window.focus()
</script>
</body>
</html>
~ file 1 end ~
~ file 2 ~
<html>
<head>
<title>Wacky IE Flaw :]</title>
</head>
<body>
+1-
<script>
var v="a"+"A"
</script>
</body>
</html>
~ file 2 end ~
This ''test'' does absolutely nothing - alerting the value of ''v'' shows
''aA'' as expected.
Notes:
- Any instance of +n - (where n=integer) will cause JavaScript string
concatenations to blow up
''blow up''? Too many Hollywood movies perhaps, where even a flat tyre
causes a car to explode... provided it''s being driven by a baddie.
- Loading in new window helps error to come out but is not always
necessary
无论如何都没有任何区别。
>
-
Zif
Makes no difference since nothing happens anyway.
--
Zif
我只测试了两台机器并且都失败了。两者都是公司
图像。可能是图像问题...
其他任何人?
I have tested only two machines and both fail. Both are Corporate
images. Possibly a image issue...
Any other takers?
Java脚本Dude写道:
Java script Dude wrote:
我只测试了两台机器并且都失败了。两者都是公司的图像。可能是一个图像问题...
任何其他人?
I have tested only two machines and both fail. Both are Corporate
images. Possibly a image issue...
Any other takers?
IE6.0 SP1上没有问题
这将有助于提示不起作用你的
网站:脚本没有执行,窗口没有打开,IE显示Firefox
标志加载? :-)
There is no problem on IE6.0 SP1
That would help greatly to have a hint what "doesn''t work" on your
site: script doesn''t execute, window doesn''t open, IE displays Firefox
logo on load? :-)
这篇关于+ n- IE中的缺陷的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!