Text or HTML of the document (at check time)
Text or HTML of the current document
If checkedDocument is the HTML of the document (at check time) and currentDocument is the extracted text of the current document then you should set inputFormat to 'HTML'.
Text or HTML of the document (at check time)