Open Bug 549046 Opened 14 years ago Updated 3 years ago

contenteditable works in XHTML, not in HTML5

Categories

(Core :: DOM: Editor, defect, P5)

Other Branch
x86
macOS
defect

Tracking

()

People

(Reporter: codedread, Unassigned)

Details

Attachments

(2 files)

Attached are two files: one text/html, the other application/xhtml+xml.

Both have a simple <ul> with one item marked as contenteditable="true"

In Firefox 3.6 on OSX, I cannot edit the first list item in the HTML5 version (ce.html), but I can edit in in the XHTML version (ce.xhtml).

I'll note that all other modern browsers handled both files identically: Opera, Safari, Chrome.
In uploading these files, I just tested them out and discovered something suprising:

- both files worked when served over http:
- only the XHTML file works when served locally (file:)
A very strange behavior of contenteditable locally. In the following code, if <script></script> is deleted, div won't be editable! Firefox 3.6.3 html5 enabled.

<!DOCTYPE html> 
<html> 
<head> 
<script></script>
</head>
<body>
<div contenteditable="true" style="border:thin solid gray;height:1.5em;line-height:1.5em;"></div>
</body>
</html>
(In reply to comment #3)
> A very strange behavior of contenteditable locally. In the following code, if
> <script></script> is deleted, div won't be editable! Firefox 3.6.3 html5
> enabled.
> 
> <!DOCTYPE html> 
> <html> 
> <head> 
> <script></script>
> </head>
> <body>
> <div contenteditable="true" style="border:thin solid
> gray;height:1.5em;line-height:1.5em;"></div>
> </body>
> </html>

The HTML5 parser on 3.6 is abandoned (and very outdated), try it with a nightly build: http://nightly.mozilla.org instead :-) If the issue still remains, file a new bug.
In nightly (3.7a5pre) build all is correct.
Great! Now, Jeff, could you try to reproduce this again, and see if the bug is still present?
Works on Windows (v3.6), Linux (v3.7), but not in Mac OS (v3.6).

Bulk-downgrade of unassigned, >=3 years untouched DOM/Storage bug's priority.

If you have reason to believe this is wrong, please write a comment and ni :jstutte.

Severity: normal → S4
Priority: -- → P5
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: