[Webkit-unassigned] [Bug 145212] New: selection.getRangeAt(0) should return a reference to the range, not a copy
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed May 20 10:41:44 PDT 2015
https://bugs.webkit.org/show_bug.cgi?id=145212
Bug ID: 145212
Summary: selection.getRangeAt(0) should return a reference to
the range, not a copy
Classification: Unclassified
Product: WebKit
Version: 528+ (Nightly build)
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: HTML DOM
Assignee: webkit-unassigned at lists.webkit.org
Reporter: m.goleb+bugzilla at gmail.com
Steps to reproduce the problem:
1. Select some text on any page.
2. Open DevTools, go to the console
3. Enter:
var selection = getSelection();
selection.getRangeAt(0) === selection.getRangeAt(0);
It returns false. The spec:
https://dvcs.w3.org/hg/editing/raw-file/tip/editing.html#dom-selection-getrangeat
is clear:
"it must return a reference to (not a copy of) the context object's range."
The same happens in Chrome; Firefox does the right thing.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150520/f64f327b/attachment-0001.html>
More information about the webkit-unassigned
mailing list