Bug 216748

Summary: Fix dump-as-markup.js to dump selection endpoints even when they are not in text nodes
Product: WebKit Reporter: Darin Adler <darin>
Component: Tools / TestsAssignee: Darin Adler <darin>
Status: RESOLVED WORKSFORME    
Severity: Normal CC: ap
Priority: P2    
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
See Also: https://bugs.webkit.org/show_bug.cgi?id=216739

Darin Adler
Reported 2020-09-20 12:06:06 PDT
Currently dump-as-markup.js only dumps selection endpoints when they are in text nodes. Should fix it so they get dumped even when they are not in text nodes.
Attachments
Darin Adler
Comment 1 2020-09-20 12:20:47 PDT
Strange, there does seem to be code to to this in dump-as-markup; not sure why it's not working.
Darin Adler
Comment 2 2020-09-20 12:30:16 PDT
I see what the problem is. The dump-as-markup.js script already handles this fine. The problem is that WebKit moves the selection endpoints. And it will stop doing so when we turn on the live range selection support, which means we are going to get very different results from all those tests!
Note You need to log in before you can comment on or make changes to this bug.