File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -264,8 +264,8 @@ impl<Sink: TreeSink> TendrilSink<tendril::fmt::Bytes> for BytesParser<Sink> {
264
264
}
265
265
266
266
/// How many bytes does detect_encoding() need
267
- // NOTE: 3 would be enough for a BOM, but 1024 is specified for <meta> elements.
268
- const PRESCAN_BYTES : u32 = 1024 ;
267
+ // FIXME(#18): should be 1024 for <meta> elements.
268
+ const PRESCAN_BYTES : u32 = 3 ;
269
269
270
270
/// https://html.spec.whatwg.org/multipage/syntax.html#determining-the-character-encoding
271
271
fn detect_encoding ( bytes : & ByteTendril , opts : & BytesOpts ) -> EncodingRef {
@@ -281,7 +281,7 @@ fn detect_encoding(bytes: &ByteTendril, opts: &BytesOpts) -> EncodingRef {
281
281
if let Some ( encoding) = opts. transport_layer_encoding {
282
282
return encoding
283
283
}
284
- // FIXME: <meta> etc.
284
+ // FIXME(#18) : <meta> etc.
285
285
return encoding:: all:: UTF_8
286
286
}
287
287
You can’t perform that action at this time.
0 commit comments