[Mozile] Mozile usage & problem

contul mmiv contulmmiv at yahoo.com
Tue Nov 28 13:00:48 PST 2006


Hello Max. Thank you for the prompt reply.
I also received a message from James, which confirmed the bug and provided a workaround -- which actually worked :) (see bellow).
The technical details are really above my head, sorry. For the perspective of an outsider, I believe that a larger set of options for altering pages (including the "sloppy pasting of html code":)) is desirable: especially for people whom just want to adapt Mozile to some purpose ulterior to mere technicalities.
Thanks again for creating Mozile. I will continue experimenting with it for the purpose of research/archiving and will let you know of any new problems.

Best regards, Mircea

--------------- quoted message bellow -------------------------------
Hello James -- thank you for the prompt reply. And, indeed, for the very useful one at that. I installed Firebug and I succeeded to change those two attributes. Still, Mozile remains *the* tool for inline editing for online research/offline archiving. I very much hope that it will be further developed with this usage in mind as well.

I will further explore it to this end, and will post interesting stuff (problems :)).

Best regards, Mircea

"James A. Overton" <james at overton.ca> wrote: Hello Mircea,

You've discovered a strange bug. It seems that when you edit the  
source of the bgcolor attribute, the BODY element is somehow damaged,  
and so the content of the page disappears. I haven't found a way to  
fix it once it breaks.

But I do have a work-around you can use. The DOM Inspector (available  
under the Tools menu) allows you to edit the values of attributes.  
Use it to change the bgcolor attribute, since it doesn't cause the  
damage that Mozile does. The Firebug extension also has an inspector  
which can do the same thing and may be more convenient.

Like I said, this is a strange bug, and I don't precisely understand  
the cause. I'm not sure that we'll be able to fix it, but I hope that  
the solution I've given will work for you.

James
------------- end of quoted message -----------------------------

Max d'Ayala <max at dayala.co.uk> wrote: Hello Mircea.

I think this is due to a bug in the Mozile 0.6.29 code. The source edit 
feature is not one I use much but I checked through for bugs when I 
updated for Firefox 2.0 and found a few things broken due to other 
earlier changes to the code. Also, the style for the source edit toolbar 
hasn't been updated since Fx1.0 I think, so amongst other things the 
close button at the right hand end of the toolbar has disappeared. I 
have spent more time than I would have liked updating this but most of 
the changes are now complete. In my current development version editing 
the body attributes now works ok. I may release an interim version in 
the next few days (0.6.29.1) for people to test before a full release.

On the same subject of the source edit feature I've replaced using 
innerHTML for text/html documents with using the XML parser (DOMParser) 
so that application/xhtml+xml and text/html and text/xml files are all 
handled the same. This gives greater consistency with how pages are 
saved. Eventually it would useful to have full entity conversion to 
mirror the save settings as well, but I can't see that happening soon. 
Currently, you get the DOM converted back to xhtml markup with only the 
standard XML entities for "&", "<", and ">", plus I've added   to 
the new version. The advantages of using the XML parser are that it will 
tell you where any markup errors are. The disadvantage is that you can't 
paste in a chunk of sloppy html code, or code with uppercase tags, and 
insert it as you would with innerHTML.

Hence, if sloppy pasting of code is needed then I'll have to add back 
innerHTML only methods as well at some point. This would probably 
require three innerHTML editing methods: block, body and head. 
Unfortunately you can't use innerHTML on the root element "html" itself. 
When using "body" you would only be able to edit the body content and 
not any of the attributes of the body tag itself. Trying to edit the 
whole "html" element has the problem that if someone deletes or mangles 
the head or body tags you have difficulty deciding what to do with the 
mangled code and how you split it into head and body sections. Also, 
what do you do with the whitespace outside the head/body sections?

Any comments from people who want to use innerHTML editing welcome. If 
there's no real use for it I'll probably leave it out. Personally I'm 
all for leaving it out because there really isn't any support for strict 
HTML editing in the 0.6 series anyway, only XHTML editing.

Thanks,

Max



 
---------------------------------
Check out the all-new Yahoo! Mail beta - Fire up a more powerful email and get things done faster.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mozdev.org/pipermail/mozile/attachments/20061128/03e7c96d/attachment.html 


More information about the Mozile mailing list