Bug 56437

Summary: startOfDocument(Node*) and endOfDocument(Node*) return a null VisiblePosition if the document is non-editable and contains only an editable pocket
Product: WebKit Reporter: Justin Garcia <justin.garcia>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: adele, enrica
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   

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
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.