Bug 256134
| Summary: | Selecting a link and pasting plain text changes text in the link, but not the link href | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Wenson Hsieh <wenson_hsieh> |
| Component: | HTML Editing | Assignee: | Wenson Hsieh <wenson_hsieh> |
| Status: | RESOLVED FIXED | ||
| Severity: | Normal | CC: | twisniewski, webkit-bug-importer, wenson_hsieh |
| Priority: | P2 | Keywords: | InRadar |
| Version: | WebKit Nightly Build | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
Wenson Hsieh
This can lead to misleading behaviors — for instance:
1. Let's suppose there's an editable element with a link `<a href="https://www.apple.com">www.apple.com</a>`.
2. Copy the plain text "webkit.org"
3. Select the editable link and paste.
Observed: the hyperlink persists with the same href ("https://www.apple.com"), but with the new text content "webkit.org"
Expected: either remove the hyperlink entirely (i.e. just the plain text "webkit.org"), or somehow replace the href of the link with "http://webkit.org".
| Attachments | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
Wenson Hsieh
rdar://16950226
Wenson Hsieh
Pull request: https://github.com/WebKit/WebKit/pull/13309
EWS
Committed 263539@main (2c273978ff63): <https://commits.webkit.org/263539@main>
Reviewed commits have been landed. Closing PR #13309 and removing active labels.
Thomas Wisniewski [:twisniewski]
Do we know if Blink has a bug on file to match this behavior?