Browser compatible document parser.