Open Bug 1760267 Opened 3 years ago Updated 2 years ago

Migrate htmlparser.properties to Fluent

Categories

(Core :: DOM: HTML Parser, task)

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.

Blocks: 1581212
No longer blocks: 1501881

(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.

You need to log in before you can comment on or make changes to this bug.