Skip to content

Commit 623c555

Browse files
committed
Fix searching elements by class name from a tree including a text node by implementing the missing class_list method
1 parent 3dd1156 commit 623c555

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/arbre/html/text_node.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ def build(string)
2222
@content = string
2323
end
2424

25+
def class_list
26+
[]
27+
end
28+
2529
def tag_name
2630
nil
2731
end

0 commit comments

Comments
 (0)