This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
When the extracted encoding from the XML declaration does not match a well-known encoding, no tests are run and no errors are returned. Ex: <?xml version="1.0" encoding="unknown"?> The error occurs because in that case "body" is set to null in that case in HTTPTextResource.java.
Bug 5921, bug 6284, bug 6718 and bug 6818 are similar because they all relate to primary documents that cannot be decoded nor parsed. The Checker should return an error in such cases, and not raise an exception that makes it look as if something is wrong within the Checker. See comments in Bug 5921 for more details. There is one more problem raised by this bug: when the stated encoding is defined in the XML, we have no way to represent it in the moki if the text content cannot be decoded in the end. In the moki, the XML encoding is defined in the xmlDecl element, serialized by the XhtmlContent class. But the code requires the body to have been decoded. I'll raise another bug on this.