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

165 views Asked by At

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

AFAIK, all the previous-gen browsers didn't support the HTML5 data- 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?

1

There are 1 answers

2
Paul D. Waite On

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.