On Fri, May 26, 2017 at 4:12 AM, <gabi.t.san...@gmail.com> wrote:

> Still, sometimes XML fragments come up and even if they are not 100% XML
> spec compliant i still have to process them. This includes encoding
> detection as well, when the XML declaration is missing from the fragments.
>

​Where do the fragments come from? If you pulled them out of a document
then you should have a charset (even if we have to guess at the document
level). If you only get the fragments through an API the charset should be
passed along as an argument to the API, otherwise treat them as Henri
described above.

-Dan Veditz
_______________________________________________
dev-platform mailing list
dev-platform@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-platform

Reply via email to