There is no decoder associated with documents created via XSLT transformation. This may cause problems when encoding submitted form data or URLs. In Firefox, document.characterSet returns the encoding parameter of xsl:output directive, or UTF-8 if none is specified.
Created attachment 4919 [details] proposed patch
Comment on attachment 4919 [details] proposed patch looks fine, r=me