lib/trac-wiki/tree.rb in trac-wiki-0.3.14 vs lib/trac-wiki/tree.rb in trac-wiki-0.3.15

- old
+ new

@@ -138,21 +138,21 @@ return "<#{tag}#{attrs_to_s(tag, node.attrs)}>#{cont_to_s(node.cont)}</#{tag}>#{nl}" end TAGS_APPEND_NL = [:div, :p, :li, :ol, :ul, :dl, :table, :tr, :td , :th] - TAGS_FORCE_PAIR = [:a, :td, :h1, :h2, :h3, :h4, :h5, :h6, :div, :script] + TAGS_FORCE_PAIR = [:a, :td, :h1, :h2, :h3, :h4, :h5, :h6, :div, :script, :i] TAGS_ALLOVED = [:a, :h1, :h2, :h3, :h4, :h5, :h6, :div, :span, :p, :pre, :li, :ul, :ol, :dl, :dt, :dd, :b, :tt, :u, :del, :blockquote, :strong, :em, :sup, :sub, :i, :table, :tr, :td, :th, :br , :img, :hr, :form, :textarea, :input, :select, :option, ] TAGS_SKIP_EMPTY = [ :p , :ol, :li, :strong, :em ] - ATTRIBUTES_ALLOWED = { :form => [:action, :meth], + ATTRIBUTES_ALLOWED = { :form => [:action, :method], :input => [:size, :type, :value, :name], :select => [:multiple, :name], :option => [:disabled, :selected, :label, :value, :name], :a => [:name, :href], :img => [:src, :width, :height, :align, :valign, :style, :alt, :title],