edx/edx-platform — pull request #622 by wedaly (2013-08-09 16:21:02+00:00)
Title: Failing JavaScript tests in Firefox

Updated tests to weaken "number" input field requirement. This is an HTML5 feature that isn't supported in FireFox, so FF changes the input type to "text".

This is basically how feature detection libraries like modernizr (http://modernizr.com/) do this: create an input element, set its type to "number" and see if it ends up being "text". See: http://diveintohtml5.info/detect.html#input-types

Since we allow the input type to be "text" in the UI, I think it's okay to weaken the expectation in the JavaScript tests as well.

@jzoldak @cahrens What do you think about this approach?