Re: [whatwg/encoding] Add get an encoder and encode or fail for URLs (#238)

@annevk commented on this pull request.



> @@ -1045,11 +1045,16 @@ optional I/O queue of bytes <var>output</var> (default « »), return the result
 
 <h3 id=legacy-hooks>Legacy hooks for standards</h3>
 
-<p class=note>In addition to the <a>decode</a>, <a>BOM sniff</a>, and <a>encode</a> algorithms
-below, standards needing these legacy hooks will most likely also need to use <a>get an encoding</a>
-(to turn a <a>label</a> into an <a for=/>encoding</a>) and <a>get an output encoding</a> (to turn an
-<a for=/>encoding</a> into another <a for=/>encoding</a> that is suitable to pass into
-<a>encode</a>). Other algorithms are not to be used directly.
+<div class=note>
+ <p>In addition to the <a>decode</a>, <a>BOM sniff</a>, and <a>encode</a> algorithms below,
+ standards needing these legacy hooks will most likely also need to use <a>get an encoding</a> (to
+ turn a <a>label</a> into an <a for=/>encoding</a>) and <a>get an output encoding</a> (to turn an

I filed #240 on this. I'd like to go for a more minimal approach and can post a PR after this lands if that's okay.

-- 
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/238#discussion_r510830345

Received on Friday, 23 October 2020 11:54:22 UTC