Open
Bug 194983
Opened 22 years ago
Updated 5 years ago
composer removes text from html editor that it considers invalid
Categories
(Core :: DOM: Editor, defect, P5)
Core
DOM: Editor
Tracking
()
NEW
People
(Reporter: jjc, Unassigned)
Details
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130
Composer removes text that is typed in in the html source view that it considers
invalid.
Reproducible: Always
Steps to Reproduce:
1. Edit a new page in composer
2. Switch to <html> source view
3. add invalid line <p style="text-align: centur">This is text</p> to code
(note the mispelling of center.)
4. switch to normal view
5. switch back to <html> source view
6. notice that the style has been changed to style=""
Actual Results:
The style was removed.
Expected Results:
Mozilla should have warned that the style was invalid, and not removed it.
Mozilla should NEVER remove something that is typed in the html source with out
give a warning and a chance to fix it first. Also if you go to undo you will
notice that you cannot undo the removal as well. I have had the who style
removed several times because of a single letter typo.
Comment 1•22 years ago
|
||
-->core
I assume we'd have the same behavior if the file had been saved elsewhere and
opened into Composer.
Assignee: composer → jfrancis
Status: UNCONFIRMED → NEW
Component: Editor: Composer → Editor: Core
Ever confirmed: true
OS: Linux → All
Hardware: PC → All
Reporter | ||
Comment 2•22 years ago
|
||
Yes, the same behavior occurs if the html is loaded from a file.
Comment 3•21 years ago
|
||
I've had similar problems in the Mozilla 1.72 Mac OS X
Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.7.2) Gecko/20040803
A comment in the source code between the html and head tags is deleted. It seems
Mozilla's Composer really likes to have the head tag immediately beside the html
tag, on the same line.
I discovered this when editing a document created in another editor/software
(Dreamweaver), which uses software-specific comment tags inserted into the page,
including one between the <html> and <head> tags.
It would be nice to be able to use Mozilla to quickly edit the content of pages,
without having it delete parts of the code without asking (even comments).
Updated•18 years ago
|
QA Contact: sujay → editor
Updated•18 years ago
|
Assignee: mozeditor → nobody
Comment 4•5 years ago
|
||
Bulk-downgrade of unassigned, >=5 years untouched DOM/Storage bugs' priority.
If you have reason to believe this is wrong (especially for the severity), 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.
Description
•