Open Bug 1489042 Opened 6 years ago Updated 2 years ago

Make StringBuilder keep track of whether all units are in the Latin1 range

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

People

(Reporter: hsivonen, Unassigned)

References

(Blocks 1 open bug)

Details

Once we have bug 1449849, we should avoid converting to UTF-16 and back to Latin1 when InnerHTML getting returns content that's all in the Latin1 range to SpiderMonkey.

Text nodes know if they are Latin1. Static atoms and literals are in the ASCII range. Attribute values and dynamic atoms need to be checked at the time of generating the Units.
Component: DOM → DOM: Core & HTML
Depends on: 1561564
No longer depends on: 1449849
Blocks: 1583808
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.