Migrate htmlparser.properties to Fluent
Categories
(Core :: DOM: HTML Parser, task)
Tracking
()
People
(Reporter: eemeli, Unassigned)
References
(Blocks 1 open bug)
Details
Strings from this file are formatted in a couple of places, one of which (errQuirkyDoctypeVerbose
) is called twice during startup, according to the arewefluentyet.com M2 data.
While the properties-to-ftl tool should make migrating the .properties file itself relatively easy, it isn't able to automatically update the C++ call sites. For that, there's at least an example that may be followed.
For this file in particular, switching from the variable-index style used by properties to the variable-name of Fluent should be pretty painless, as all of the strings with variables use the tag name as the first variable, and there is only one string with two variables (errEndTagDidNotMatchCurrentOpenElement
).
Separately from the migration, it does seem a bit odd that a quirks-mode document appears to be rendered during startup.
Comment 1•2 years ago
|
||
(In reply to Eemeli Aro [:eemeli] from comment #0)
Separately from the migration, it does seem a bit odd that a quirks-mode document appears to be rendered during startup.
Is this for about:blank or something else? We should probably suppress the message for about:blank in general, even though it is meaningful in the case where a Web site uses DOM methods to add visible content to an about:blank doc. It's obviously not a useful message when about:blank indeed remains blank.
Updated•2 years ago
|
Description
•