[daisy] Firefox doesn't sense boldness of existing text?

Bruno Dumon bruno at outerthought.org
Wed May 28 09:29:19 CEST 2008


On Tue, 2008-05-27 at 16:48 -0700, Allan Pratt wrote:
> There is a Daisy 2.1 installation at my work, and I have discovered 
> something: when using FireFox 2.0.0.12 to edit a page, if there is bold 
> text already in a page when I start editing it, I can't remove the 
> boldness. I can add new text and make it bold (or not), but if something 
> was bold to begin with, I can't remove that style on that text.
> 
> Looking at the buttons across the top, the editor doesn't think the text 
> is bold at all - the "B" button does not change state when I put the 
> cursor there. Looking at the HTML source, the text is <strong> just like 
> any new bold text I enter in the editor.
> 
> When I edit the same page with IE 6, the editor does recognize the text 
> as bold (the "B" button changes state) and I can remove the style. So I 
> assume there is a variation in the way the editor's JavaScript executes 
> in the two browsers.
> 
> Is this familiar to anybody, are there any suggestions? If there's no 
> useful discussion I'll file a bug report and move on; what I have so far 
> is a bit thin for a bug report but it's all I've got.
> 

It is a known problem/limitation. Firefox doesn't recognize <strong> as
being bold.

Implementation-wise, there are various solutions possible, ranging from
custom-writen style detection code to converting the <strong> to <b>
when the document is loaded in firefox.

This issue will probably be fixed when we write/integrate a new
generation of the HTML editor. You're however welcome to file an issue.

Meanwhile, to remove the bold and other styles, there is a 'remove
style' button on the toolbar.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought                            http://www.daisycms.org/
bruno at outerthought.org              http://www.kauriproject.org/



More information about the daisy mailing list