Re: [Htmlvalidator-help] Firebug and HTML Validator
Brought to you by:
mgueury
From: Marc G. <mg...@sk...> - 2007-02-07 22:56:53
|
Hi Joe, Thanks a lot for the bug report. I got several people that pinged me about the problem but could not reproduce it. Like you say, it is not due to my extension, neither to Firebug. I tried to include your fix, but it brakes the extension :-) Anyway, I looked further and found a way to reproduce one of the issue mentioned here: http://groups.google.com/group/firebug/browse_thread/thread/90a9f17941cd2418/f6f61001631aec4d?lnk=gst&q=validator&rnum=1 <http://groups.google.com/group/firebug/browse_thread/thread/90a9f17941cd2418/f6f61001631aec4d?lnk=gst&q=validator&rnum=1> I found another way to work-around the issue by removing the creation of the tooltip during the onLoad trigger. I did upload a new version of next version of HTML Validator (0.836) with a fix for this: - can you check if it works for you. http://users.skynet.be/mgueury/mozilla/preview_080.html Whatever is the result, I am interested to know if it solves the problem you are seeing. If not, can you tell me more about your environment OS and so on. Thanks by advance, Marc Joe Hewitt wrote: > Hi Marc, > > I'm the creator of the Firebug extension. My users have been > frequently reporting a problem that occurs when Firebug and HTML > Validator are installed together. I looked into it today and have > found a solution which I need your help with. Here are some threads > discussing the problem: > > http://groups.google.com/group/firebug/browse_thread/thread/225b23ce17780e3/bbb3e28cc7ce9e70?lnk=gst&q=validator&rnum=2 > > > http://groups.google.com/group/firebug/browse_thread/thread/90a9f17941cd2418/f6f61001631aec4d?lnk=gst&q=validator&rnum=1 > > > Basically, neither one of us are doing anything wrong. This is a bug > in Firefox's notoriously fragile keyboard focus code. It seems that > the problem is triggered when HTML Validator builds up the DOM of its > tooltip. The easiest solution I have found is simply to call the > function onTidyBrowserTopLoad after a timeout, like so: > > --- tidyBrowser.js 2007-02-03 13:26:56.000000000 -0800 > +++ tidyBrowser2.js 2007-02-03 13:26:59.000000000 -0800 > @@ -27,7 +27,7 @@ > onLoadTidyUtil(); > oTidyBrowser = new TidyBrowser(); > window.top.removeEventListener("load", onTidyBrowserTopLoad, true); > - window.top.addEventListener("load", onTidyBrowserTopLoad, true); > + //window.top.addEventListener("load", function() { > setTimeout(onTidyBrowserTopLoad); }, true); > window.top.removeEventListener("pageshow", > onTidyBrowserTopPageShow, true); > window.top.addEventListener("pageshow", onTidyBrowserTopPageShow, > true); > } > > I would have preferred to find a fix in Firebug, but unfortunately I > haven't been able to do so yet. Do you think you could include this > patch in HTML Validator and release an update to the extension? > > Thanks! > > - Joe > > |