a little more code reuse in Mojo::DOM