开发者

Does Firefox 3 support Rails3 UJS, despite not supporting HTML5 data-* attributes?

Am I missing something or is Rails3 UJS incompatible with Firefox 3?

AFAIK, all the previous-gen browsers didn't support the HTML5 dat开发者_JS百科a- attributes, so does this mean all the Rails3-style UJS code won't work on Firefox browsers prior to Firefox 4? Are there workarounds if so?


I believe you can code your own alternative to the HTML5 data- attributes API (see Do HTML5 custom data attributes “work” in IE 6?), because HTML5 was designed to work with existing browsers as far as possible.

I’m entirely unfamiliar with Rails, but whatever Rails3 UJS is, it may well have its own built-in alternative to native HTML5 data- attribute support.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜