7494: refactor WebDocumentParser