lib/action_controller/vendor/html-scanner/html/node.rb in actionpack-3.0.10.rc1 vs lib/action_controller/vendor/html-scanner/html/node.rb in actionpack-3.0.10

- old
+ new

@@ -154,10 +154,10 @@ return CDATA.new(parent, line, pos, scanner.pre_match.gsub(/<!\[CDATA\[/, '')) end closing = ( scanner.scan(/\//) ? :close : nil ) - return Text.new(parent, line, pos, content) unless name = scanner.scan(/[\w:-]+/) + return Text.new(parent, line, pos, content) unless name = scanner.scan(/[^\s!>\/]+/) name.downcase! unless closing scanner.skip(/\s*/) attributes = {}