small optimization in Mojo::DOM::HTML