lib/nagoro/pipe/element.rb in manveru-nagoro-2009.03.21 vs lib/nagoro/pipe/element.rb in manveru-nagoro-2009.03.28

- old
+ new

@@ -12,12 +12,12 @@ ELEMENTS = {} class ElementStruct < Struct.new(:tag, :attrs, :element, :content) end - def tag_start(tag, attrs) + def tag_start(tag, original_attrs, value_attrs) if element = ELEMENTS[tag] - @stack << ElementStruct.new(tag, attrs, element, []) + @stack << ElementStruct.new(tag, value_attrs, element, []) elsif tag =~ /^[A-Z]/ warn "Element: '<#{tag}>' not found." super else super