Changeset 1139

Show
Ignore:
Timestamp:
12/29/07 14:03:40 (1 year ago)
Author:
coda.ha..@gmail.com
Message:

Reverting changes to post-r1136 rendered <script> elements. Not self-closing, with "//" for content. Closes #381.
(Sorry, Mike. Thanks, Dudley.)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lib/merb/mixins/view_context.rb

    r1138 r1139  
    372372          :type => "text/javascript" 
    373373        } 
    374         tags << %Q{<script #{attrs.to_xml_attributes}></script>} 
     374        tags << %Q{<script #{attrs.to_xml_attributes}>//</script>} 
    375375      end 
    376376 
  • trunk/spec/merb/view_context_spec.rb

    r1136 r1139  
    175175    tag.should match_tag(:script, :src => "/javascripts/foo.js", 
    176176                                  :type => "text/javascript", 
    177                                   :content => nil
     177                                  :content => "//"
    178178 
    179179    js_include_tag('foo').should == js_include_tag('foo.js') 
     
    188188    tag.should match_tag(:script, :src => "/inky/javascripts/foo.js", 
    189189                                  :type => "text/javascript", 
    190                                   :content => nil
     190                                  :content => "//"
    191191 
    192192    Merb::Server.config.delete(:path_prefix) 
     
    234234    tag.should match_tag(:script, :src => "/javascripts/all.js", 
    235235                                  :type => "text/javascript", 
    236                                   :content => nil
     236                                  :content => "//"
    237237  end 
    238238   
     
    245245    tag.should match_tag(:script, :src => "/javascripts/base.js", 
    246246                                  :type => "text/javascript", 
    247                                   :content => nil
     247                                  :content => "//"
    248248  end 
    249249   
     
    263263    tag.should match_tag(:script, :src => "/javascripts/all.js", 
    264264                                  :type => "text/javascript", 
    265                                   :content => nil
     265                                  :content => "//"
    266266  end 
    267267end