# File lib/html/element.rb, line 214 def path path = [] node = self while node do path.unshift node.tag node = node.parent end path.join(".") end