modified strategy to detect HTML documents (nodeType==9), 'BODY' and/or 'HTML' elements may be missing
modified strategy to detect HTML documents (nodeType==9), 'BODY' and/or 'HTML' elements may be missing

dperini/nwsapi