Re: [whatwg/encoding] Add a BOM sniffing hook for better integration with HTML (#203)

andreubotella commented on this pull request.



>  
+<p class=note>This hook is a workaround for the fact that <a>decode</a> has no way to communicate
+back to the caller that it has found a byte order mark and is therefore not using the provided
+encoding. The hook is to be invoked before <a>decode</a>, and it will return an encoding
+corresponding to the byte order mark found, or null otherwise.

My bad, I was doing `git diff` with respect to origin/master and it was matching one of the blank lines in the original in the middle of my change.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/pull/203#discussion_r395059420

Received on Thursday, 19 March 2020 14:18:47 UTC