For compatibility with pySBOL, `Document.write()` should validate if the validate config option is set.