I think this probably should not intern `tag`. `elem.tag_name` can be converted to string slice instead.