mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
We only set the grapheme segmenter's text once after creating a new segmenter, so we also need to clear it whenever we invalidate the text.
10 lines
332 B
HTML
10 lines
332 B
HTML
<!DOCTYPE html>
|
|
<head><link rel="match" href="reference/textnode-segmenter-invalidation.html" /></head>
|
|
<textarea id="output"></textarea>
|
|
<script>
|
|
document.addEventListener('DOMContentLoaded', () => {
|
|
document.body.offsetWidth // Force layout
|
|
document.getElementById('output').value = 'a\nb';
|
|
});
|
|
</script>
|