Utilities for working with htmlparser2's dom