You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>For example. if you are to add an image format to the web platform, first add a new MIME
3165
3166
type for the format. After this, you would naturally add a decoder (and presumably an
3166
3167
encoder) for said image format to support decoding in HTMLImageElements. On top of this,
3167
-
you are also expected to add support to egress points such as HTMLCanvasElement.toBlob()
3168
-
and HTMLCanvasElement.toDataURL().</p>
3168
+
you are also expected to add support to egress points such as <code>HTMLCanvasElement.toBlob()</code> and <code>HTMLCanvasElement.toDataURL()</code>.</p>
3169
3169
<p>For legacy reasons browsers support MIME type sniffing, but we do not recommend extending
3170
3170
the <ahref="https://mimesniff.spec.whatwg.org/#image-type-pattern-matching-algorithm">pattern matching algorithm</a>,
3171
3171
due to security implications, and instead recommend enforcing strict MIME types for newer formats.</p>
0 commit comments