lib/pakyow/presenter/significant_nodes.rb in pakyow-presenter-1.0.0.rc3 vs lib/pakyow/presenter/significant_nodes.rb in pakyow-presenter-1.0.0.rc4
- old
+ new
@@ -181,10 +181,10 @@
# @api private
class FormNode < SignificantNode
StringDoc.significant :form, self, descend: false
def self.significant?(node)
- node.is_a?(Oga::XML::Element) && node.attribute(:binding) && node.name == FORM_TAG
+ node.is_a?(Oga::XML::Element) && node.name == FORM_TAG
end
def self.decorate(node)
node.set_label(:presenter_type, Presenters::Form)
node.set_label(:view_type, Views::Form)