Project

General

Profile

Feature #255 ยป cgi_elements.patch

Anonymous, 07/10/2008 10:10 PM

View differences:

lib/cgi.rb (Arbeitskopie)
1257 1257
      s = <<-END
1258 1258
          "<#{element.upcase}" + attributes.collect{|name, value|
1259 1259
            next unless value
1260
            " " + CGI::escapeHTML(name) +
1260
            " " + CGI::escapeHTML(name.to_s) +
1261 1261
            if true == value
1262 1262
              ""
1263 1263
            else
1264
              '="' + CGI::escapeHTML(value) + '"'
1264
              '="' + CGI::escapeHTML(value.to_s) + '"'
1265 1265
            end
1266 1266
          }.to_s + ">"
1267 1267
      END