WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
56437
startOfDocument(Node*) and endOfDocument(Node*) return a null VisiblePosition if the document is non-editable and contains only an editable pocket
https://bugs.webkit.org/show_bug.cgi?id=56437
Summary
startOfDocument(Node*) and endOfDocument(Node*) return a null VisiblePosition...
Justin Garcia
Reported
2011-03-15 18:14:35 PDT
startOfDocument(Node*) and endOfDocument(Node*) return a null VisiblePosition if the document is non-editable and contains only an editable pocket. I don't think I can construct a test case for this. VisiblePosition endOfDocument(const Node* node) { if (!node || !node->document() || !node->document()->documentElement()) return VisiblePosition(); Element* doc = node->document()->documentElement(); return VisiblePosition(lastPositionInNode(doc), DOWNSTREAM); } <
rdar://problem/9139718
>
Attachments
Add attachment
proposed patch, testcase, etc.
Enrica Casucci
Comment 1
2014-09-04 15:40:13 PDT
This has been fixed as part of revision 173287.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug