Fix for FX21 createHTMLDocument issue (bug 883112)