Forum: Ruby on Rails javascript_include_tag emits self-closing <script> tag

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
akonsu (Guest)
on 2007-01-09 04:59
(Received via mailing list)
hello,

here is a sample rhtml:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head><%= javascript_include_tag :defaults %></head>
  <body>test</body>
</html>

the call to javascript_include_tag outputs self-closing <script />
tags. which is not a proper strict xhtml according to the DTD, so IE
does not render the page. the page is just shown blank.

is there a way to make rails behave?

thanks
konstantin
This topic is locked and can not be replied to.