Open Bug 1280565 Opened 8 years ago Updated 2 years ago

Empty link exposed when selected link is replaced in editor

Categories

(Core :: Disability Access APIs, defect, P3)

defect

Tracking

()

People

(Reporter: Jamie, Unassigned)

References

(Blocks 1 open bug)

Details

STR:
1. Open this URL: data:text/html,<div contentEditable="true">a<a href="http://www.google.com/">b</a>c</div>
2. Focus the content editable.
3. Press home.
4. Press right arrow.
5. Press shift+right arrow to select the "b".
6. Type "z", thereby replacing the link.
7. Examine the text of the content editable accessible.
Expected: "azc"
Actual: "az*c", where * is an embedded object for an empty link.

The link shouldn't be exposed in the text.

Practical impact: If you read this line with a screen reader, you will get "az, link, c" or similar, but there's no link as far as the user is concerned.
The link is still in the DOM once it's been replaced, so this is probably an editor bug. That said, I do wonder whether accessibility should filter this out.
Priority: -- → P3
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.