Closed
Bug 458182
Opened 17 years ago
Closed 15 years ago
When parentNode of a contentEditable is an <a> element, backspace is disabled.
Categories
(Core :: DOM: Editor, defect)
Core
DOM: Editor
Tracking
()
RESOLVED
DUPLICATE
of bug 439808
People
(Reporter: leemcdermott, Unassigned)
Details
(Keywords: testcase)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b1pre) Gecko/20080908055621 Minefield/3.1b1pre
Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1b1pre) Gecko/20080908055621 Minefield/3.1b1pre
I have contentEditables on a webpage that are like so:
<a href="file.html"><span contentEditable="true">Editable Content</span></a>
For some reason, the backspace and delete keys are disabled. This problem is fixed if I remove the href attribute, but only in the source. Dynamically removing it through JavaScript is ineffective at fixing this problem.
Also, the contentEditable is enabled via JavaScript.
Reproducible: Always
Steps to Reproduce:
1. Focus a contentEditable with <a href="blah"> as parent
2. Press backspace key
3.
Actual Results:
Nothing happens
Comment 1•17 years ago
|
||
Comment 2•17 years ago
|
||
It seems to work if there's no block ancestors.
Updated•17 years ago
|
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
Keywords: testcase
OS: Mac OS X → All
Product: Firefox → Core
QA Contact: general → editor
Hardware: Macintosh → All
This bug is probably related/identical to Bug 454191 (https://bugzilla.mozilla.org/show_bug.cgi?id=454191, "del and backspace don't work on contenteditable nested inline nodes")
Updated•15 years ago
|
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•