阅读:4409回复:9
我的firefox~Question~!
我在打开www.pconline.com.cn/download 里面任一下载页连接的时候,总是会出现以下错误(用IE打开同样网页未见此错误):
1.javascript控制台出现警告,"ID/NAME 所引用的元素位于全局范围。请使用W3C的标准形式 document.getElementById()" 2.javascript控制台出现错误,"xmlDInfo is not defined" 3.javascript控制台出现错误,"NavigationData is not defined" 4.下载页显示不正确。未能出现下载连接和软件基本信息等。 是不是因为没有安装某些插件,或者是某些插件设置错误所造成? 希望可以帮我解决这个问题! 还有很多小问题,我陆续整理上来!! |
|
1楼#
发布于:2004-12-26 22:01
pconline是老大难问题
他们自己网站的代码不规范,w3c的标准中没有documents.all这个集合,访问元素因该使用document.getElementById()这个函数,所以表错。 其它的显示不正常也是页面代码不规范照成的。 解决方法呢,1是使用一些非官方的firefox版本,比如madfox,2写信给pconline,让他们改成规范网页,现在pconline已经在改了,不过需要时间 |
|
2楼#
发布于:2004-12-26 22:01
这是因为pconline的网页不符合W3C标准,可以写信给pconline反映,要求改正。
|
|
3楼#
发布于:2004-12-26 22:01
的确改了,比以前好些了
|
|
4楼#
发布于:2004-12-26 22:01
documents.all is supported by Gecko in recent nightly and branch builds, which means it will be supported soon by gecko series.
|
|
|
5楼#
发布于:2004-12-26 22:01
nighttalker:documents.all is supported by Gecko in recent nightly and branch builds, which means it will be supported soon by gecko series.回到原帖 which means pconline.com.cn's looking good in Firefox has nothing 2 do with PCONLINE, am I right? |
|
6楼#
发布于:2004-12-26 22:01
|
|
7楼#
发布于:2004-12-26 22:01
digi: https://bugzilla.mozilla.org/show_bug.cgi?id=248549 as far as "document.all" is concerned, yes This change was added in July, 2004, tho, so im not sure if this is the only reason about pconline.com.cn's problem ![]() |
|
|
8楼#
发布于:2004-12-26 22:01
我已经写过信给他们了,不过连一个恢复也没有
似乎他们不是很重视这个问题。 |
|
9楼#
发布于:2004-12-26 22:01
ff1.0里已经有document.all的实现,不过实现的方式undetected document.all。也就是说,可用但不可探测。
如果你直接用document.all比如:document.all("id").style=xxx,是可以工作的。但如果你去检测document.all的存在,比如if(document.all),那么返回都是false。 这样实现的原因是很多网页拿doucment.all是否存在来做浏览器类型判断。 if(document.all) { code only for ie }else{ standard code or code for netscape/mozilla } 如果直接实现doucment.all,会导致这些网站的访问出现问题。 pconline最大的问题是使用了xml数据岛的问题。 |
|