rails/rails — pull request #5748 by ai (2012-04-05 11:39:38+00:00)
Title: Remove unnecessary in HTML 5 type attribute with default value

In HTML 5 `type` attribute in `` have default value (`text/javascript` or `text/css`), so it’s unnecessary now.

By default, `app/views/layout/application.html.erb` have HTML 5 doctype, so we can miss `type` attribute.

Without it code will become cleaner and shorter.

If someone use HTML 4, browser will understand tags without `type`. Also HTML 4 users can just set type by `:type` params in `javascript_include_tag`, etc.