Class: BetterHtml::TestHelper::SafeErb::TagInterpolation
- Defined in:
- lib/better_html/test_helper/safe_erb/tag_interpolation.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from BetterHtml::TestHelper::SafeErb::Base
Instance Method Details
#validate ⇒ Object
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/better_html/test_helper/safe_erb/tag_interpolation.rb', line 8 def validate @parser.nodes_with_type(:tag).each do |tag_node| tag = Tree::Tag.from_node(tag_node) tag.attributes.each do |attribute| validate_attribute(attribute) end end @parser.nodes_with_type(:text).each do |node| validate_text_node(node) unless in_script_tag?(node) end end |