Bug 216748 - Fix dump-as-markup.js to dump selection endpoints even when they are not in text nodes
Summary: Fix dump-as-markup.js to dump selection endpoints even when they are not in t...
Status: RESOLVED WORKSFORME
Alias: None
Product: WebKit
Classification: Unclassified
Component: Tools / Tests (show other bugs)
Version: WebKit Nightly Build
Hardware: All All
: P2 Normal
Assignee: Darin Adler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-20 12:06 PDT by Darin Adler
Modified: 2020-09-20 12:59 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Darin Adler 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.
Comment 1 Darin Adler 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.
Comment 2 Darin Adler 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!