Two WYSIWYG bugs with Firefox 2.0
Posted: Wed Mar 14, 2007 4:49 pm
Hi !
I foud two bugs when I use the WYSIWYG editor to post a new post on my blog.
I use Firefox 2.0.0.1 and Serendipity 1.1.2
Bug #1:
- Focus a WYSIWYG window (introduction or body)
- type a text
- click on the unordered list icon
- press enter and write some text for the other list item
- press enter : it adds another list item.
- click again on the unordered list icon : it removes the empty list item
- press enter
The "Path" label at the bottom of the window appears empty (normally it should display at least "body" or "body p") and I can't do anything in that window. I can just add text but can't use backspace, del button, etc.
I cannot switch to HTML mode.
Then an error messagebox appears sometimes : "Your document is not well formed"
Javascript console says :
Error: this._doc.body has no properties
Source File: serendipity/htmlarea/htmlarea.js
Line: 1177
And some :
SessionStore: TypeError: aContent.document.body has no properties
-----------------------------------------------------------------
Bug #2
if you click on the bullet list icon without having typed something in a zone you get this error in a messagebox (nothing in javascript console):
[Exception... "Component returned failure code: 0X80004005 (NS_ERROR_FAILURE)
[nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: /serendipity/htmlarea/htmlarea.js :: anonymous :: line 1876" data: no]
by execCommand(insertunorderedlist);
If you typed something (a blinking cursor appeared), everything works. Even if I remove the text and focus another field.
With IE6, when the page is loaded the cursor is already blinking in the field so it always work.
For both bugs, there is no problem with IE
I foud two bugs when I use the WYSIWYG editor to post a new post on my blog.
I use Firefox 2.0.0.1 and Serendipity 1.1.2
Bug #1:
- Focus a WYSIWYG window (introduction or body)
- type a text
- click on the unordered list icon
- press enter and write some text for the other list item
- press enter : it adds another list item.
- click again on the unordered list icon : it removes the empty list item
- press enter
The "Path" label at the bottom of the window appears empty (normally it should display at least "body" or "body p") and I can't do anything in that window. I can just add text but can't use backspace, del button, etc.
I cannot switch to HTML mode.
Then an error messagebox appears sometimes : "Your document is not well formed"
Javascript console says :
Error: this._doc.body has no properties
Source File: serendipity/htmlarea/htmlarea.js
Line: 1177
And some :
SessionStore: TypeError: aContent.document.body has no properties
-----------------------------------------------------------------
Bug #2
if you click on the bullet list icon without having typed something in a zone you get this error in a messagebox (nothing in javascript console):
[Exception... "Component returned failure code: 0X80004005 (NS_ERROR_FAILURE)
[nsIDOMNSHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)"
location: "JS frame :: /serendipity/htmlarea/htmlarea.js :: anonymous :: line 1876" data: no]
by execCommand(insertunorderedlist);
If you typed something (a blinking cursor appeared), everything works. Even if I remove the text and focus another field.
With IE6, when the page is loaded the cursor is already blinking in the field so it always work.
For both bugs, there is no problem with IE