Closed Bug 386728 Opened 15 years ago Closed 15 years ago

Setting the contenteditable attribute through js twice doesn't work

Categories

(Core :: DOM: Editor, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla1.9alpha8

People

(Reporter: albert.brand, Assigned: peterv)

References

()

Details

(Keywords: testcase)

Attachments

(2 files)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a7pre) Gecko/2007070304 Minefield/3.0a7pre
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a7pre) Gecko/2007070304 Minefield/3.0a7pre

See the testcase URL (from bug #237964). If you press one of the buttons (make editable or read-only), that behaviour 'sticks': pressing any button after the first time doesn't change the contenteditable behaviour of the region.

Reproducible: Always



Expected Results:  
The contenteditable behaviour should be switchable through the removal and adding of the contenteditable attribute.
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
QA Contact: general → editor
Version: unspecified → Trunk
Attached patch v1Splinter Review
We should only enable/disable JS when turning off designMode, not for contentEditable.
Assignee: nobody → peterv
Status: NEW → ASSIGNED
Attachment #270898 - Flags: superreview?(jst)
Attachment #270898 - Flags: review?(jst)
Attachment #270898 - Flags: superreview?(jst)
Attachment #270898 - Flags: superreview+
Attachment #270898 - Flags: review?(jst)
Attachment #270898 - Flags: review+
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
Do we need a test case in the suite here?
Attached patch MochitestSplinter Review
(In reply to comment #2)
> Do we need a test case in the suite here?

Yes.
Attachment #271250 - Flags: review?(jst)
Attachment #271250 - Flags: superreview+
Attachment #271250 - Flags: review?(jst)
Attachment #271250 - Flags: review+
Flags: in-testsuite+
OS: Windows Vista → All
Hardware: PC → All
Target Milestone: --- → mozilla1.9beta1
Blocks: 424908
You need to log in before you can comment on or make changes to this bug.