mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 10:20:22 +00:00
We were passing in byte offsets instead of UTF-16 code unit offsets, which could lead to crashes if the offsets found exceeded the number of code units in text fragments on the page. Fixes #4908. Co-authored-by: Tim Ledbetter <tim.ledbetter@ladybird.org>
5 lines
59 B
HTML
5 lines
59 B
HTML
<!DOCTYPE html>
|
|
ðŸ˜a
|
|
<script>
|
|
window.find('a');
|
|
</script>
|