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)
Tracking
()
RESOLVED
DUPLICATE
of bug 725069
People
(Reporter: cacyclewp, Unassigned)
References
Details
Attachments
(1 file)
(deleted),
text/html
|
Details |
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.
Updated•13 years ago
|
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).
Comment 2•13 years ago
|
||
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
Comment 3•13 years ago
|
||
Dupe of bug 725069?
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).
Updated•13 years ago
|
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.
Description
•