Closed Bug 726431 Opened 13 years ago Closed 13 years ago

html comments are displayed in iframe in designmode when entered via execCommand('inserthtml') but not via write()

Categories

(Core :: DOM: Editor, defect)

10 Branch
x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 725069

People

(Reporter: cacyclewp, Unassigned)

References

Details

Attachments

(1 file)

Attached file testcase leaching comment.html (deleted) —
User Agent: Mozilla/5.0 (Windows NT 5.1; rv:10.0.1) Gecko/20100101 Firefox/10.0.1 Build ID: 20120208060813 Steps to reproduce: For certain html code, html comments are displayed in an iframe in designmode when entered via execCommand('inserthtml') but not via write(). Please see attached testcase.
Attachment #596474 - Attachment mime type: text/plain → text/html
Testcase: The following code is inserted into an iframe in designmode, either via execCommand('inserthtml') or via write(): <!-- THIS IS A COMMENT -->text<br> After the insertion, the iframes show the following contents: Using designmode: "THIS IS A COMMENT text" (wrong); using write(): "text" (correct).
This works for me with Seamonkey trunk on win32 but I can confirm the issue with FF10.0.1 Is this already fixed ? I see something strange with the "IFRAME (write): " field. The "text" appears only if I zoom in/out
Component: Untriaged → Editor
Product: Firefox → Core
QA Contact: untriaged → editor
In the rich text editor where I noticed this, this was also triggered by pasting content at the end of a line that contains the comment. After pasting via inserthtml, the comment nodeValue is displayed. The original comment node still exists but has been removed from the DOM (i.e. it has no siblings or parent).
Status: UNCONFIRMED → RESOLVED
Closed: 13 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: