[Webkit-unassigned] [Bug 276365] script.innerText interop issues with new lines
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 6 00:27:53 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=276365
--- Comment #5 from Karl Dubost <karlcow at apple.com> ---
I wonder if it is related to some of the failures in
https://wpt.fyi/results/dom/nodes/insertion-removing-steps
To note that this is working with textContent
data:text/html,<body><script>const script = document.createElement('script'); document.body.appendChild(script); script.textContent = `console.log('line 1');\nconsole.log('line 2');`</script>
And this is working if we do innerText without \n
data:text/html,<body><script>const script = document.createElement('script'); document.body.appendChild(script); script.innerText = `console.log('line 1');console.log('line 2');`</script>
So this is the processing of `\n` in the innerText setter which screws up things.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20240806/531a3b21/attachment.htm>
More information about the webkit-unassigned
mailing list