Setting the contenteditable attribute through js twice doesn't work

RESOLVED FIXED in mozilla1.9alpha8

Status

()

Core
Editor
RESOLVED FIXED
11 years ago
11 years ago

People

(Reporter: Albert Brand, Assigned: peterv)

Tracking

({testcase})

Trunk
mozilla1.9alpha8
testcase
Points:
---
Dependency tree / graph
Bug Flags:
in-testsuite +

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

11 years ago
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.
(Reporter)

Updated

11 years ago
Blocks: 237964
Status: UNCONFIRMED → NEW
Component: General → Editor
Ever confirmed: true
Keywords: testcase
Product: Firefox → Core
QA Contact: general → editor
Version: unspecified → Trunk
(Assignee)

Comment 1

11 years ago
Created attachment 270898 [details] [diff] [review]
v1

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)

Updated

11 years ago
Attachment #270898 - Flags: superreview?(jst)
Attachment #270898 - Flags: superreview+
Attachment #270898 - Flags: review?(jst)
Attachment #270898 - Flags: review+
(Assignee)

Updated

11 years ago
Status: ASSIGNED → RESOLVED
Last Resolved: 11 years ago
Resolution: --- → FIXED
Do we need a test case in the suite here?
(Assignee)

Comment 3

11 years ago
Created attachment 271250 [details] [diff] [review]
Mochitest

(In reply to comment #2)
> Do we need a test case in the suite here?

Yes.
Attachment #271250 - Flags: review?(jst)

Updated

11 years ago
Attachment #271250 - Flags: superreview+
Attachment #271250 - Flags: review?(jst)
Attachment #271250 - Flags: review+
(Assignee)

Updated

11 years ago
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.