add hasDoctype, systemID, publicID methods support to Document