[Webkit-unassigned] [Bug 252281] New: REGRESSION (259904 at main): window.getSelection() is empty for selection inside textarea
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Feb 14 18:50:54 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=252281
Bug ID: 252281
Summary: REGRESSION (259904 at main): window.getSelection() is
empty for selection inside textarea
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML Editing
Assignee: webkit-unassigned at lists.webkit.org
Reporter: yurys at chromium.org
CC: wenson_hsieh at apple.com
After https://commits.webkit.org/259904@main the following page shows empty selection when selecting some text inside the textarea, it was selected text before the change.
data:text/html,<textarea>Some text</textarea><div>empty</div>
<script>
document.addEventListener('selectionchange', () => {
let div = document.querySelector("div");
div.textContent = window.getSelection().toString();
});
</script>
--
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/20230215/28f7ba90/attachment.htm>
More information about the webkit-unassigned
mailing list