【发布时间】:2011-01-11 10:37:13
【问题描述】:
自从我升级到 jQuery 1.4.4 后,当我在 Firefox 3.6.13 中运行单元测试时,我收到了几条新的警告消息。这是一个典型的:
Warning: Unexpected token in attribute selector: '!'.
Source File: http://localhost/unitTests/devunitTests.html
Line: 0
或者更有用的:
Warning: Selector expected.
Source File: http://localhost/unitTests/ui/editors/iframe2.html?test=15
Line: 0
网页渲染得很好,而且我的所有 JavaScript 代码似乎也运行良好,所以我不愿意花费大量时间来削减我的代码来跟踪这些消息。但是,任何人都可以提出引起警告的原因吗?
【问题讨论】:
-
我现在已经转移到 Firefox 4 并且那些新的警告消息不再存在了。
标签: jquery firefox jquery-selectors firebug message