I was already returning a value of 1 to make it loop through the tree but that was one of the lines I cut for brevity. I changed it to return HTML::Element::OK but it still does not work. It will pick out all the other tags that I've tried (such as div, a, b)