Many people still use IE 6 and other lower version browser. HTML5 is new, many browsers don't fully support it.
If I want to use Rails 3, do I need to do some extra work?
Many people still use IE 6 and other lower version browser. HTML5 is new, many browsers don't fully support it.
If I want to use Rails 3, do I need to do some extra work?
Rails 3 doesn't tie you to HTML 5. HTML 5 wasn't even invented when rails 3 came out. The main issues with IE6 are to do with styling and javascript. For styling you just need a designer who knows what they are doing. For javascript its recommended to use a library like jQuery for all of your js needs as jQuery is fully browser compatible in the way that it operates.
I’m not sure which features of HTML5 Rails uses, but as far as possible, HTML5 has been designed to work well in older browsers. For example:
<!DOCTYPE html>
) works just fine in old browsers<input type="date">
) just render as text inputs in browsers that don’t support themYou might want to include or write a JavaScript library that simulates HTML5 features in older browsers. HTML5shim, for example, makes the new HTML5 elements (e.g. <section>
, <article>
) work better in earlier versions of IE.
Scaffolding templates in Rails 3 use the HTML5 DOCTYPE by default and HTML5 custom data attributes are used to support Unobtrusive JavaScript (the Rails' helpers no longer render inline JavaScript).
Neither of these features will break IE6, at worst it will simply ignore them. You're probably going to have to do some extra work to get your JavaScript working.