allow doctype to be returned by refs
0.0.8