Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2006-09-09 16:15:35

kram
Xinha Community Member
Registered: 2005-03-26
Posts: 21

Firefox and Web Developers toolbox extension

When I'm developing I like to have the Web Developer's extension check for Javascript errors & warnings. http://chrispederick.com/work/webdeveloper/ (works with FF, Mozilla, Seamonkey & Flock).

In FF these JS options are in Tools / Web Developer / Options / Options / Miscellaneous. If I have them switched on the Xinha throws up quite a few errors. I don't think most of them are anything to do with my site though.

Have submitted this as a new ticket (Ticket #846) but I was hoping someone else might have come across this too and have a solution - could it be something to do with the way I'm using Xinha rather than a real code problem? Here's a sample

Warning: anonymous function does not always return a value
    Source File: http://localhost/XINHA/htmlarea.js
    Line: 532    Source Code:    };

Warning: anonymous function does not always return a value
    Source File: http://localhost/XINHA/htmlarea.js
    Line: 714    Source Code:    };

Warning: anonymous function does not always return a value
    Source File: http://localhost/XINHA/htmlarea.js
    Line: 1406    Source Code:    };

...

Warning: redeclaration of function stripTag
    Source File: http://localhost/XINHA/htmlarea.js
    Line: 2323, Column: 13    Source Code:    function stripTag(el)

Thanks.

Kram

Offline

#2 2006-09-09 17:38:19

kram
Xinha Community Member
Registered: 2005-03-26
Posts: 21

Re: Firefox and Web Developers toolbox extension

Hmm. Seems I didn't have a very recent version installed after all. I do now though - just down-loaded a couple of minutes ago - and similar problems (lots of Javascript warnings) are still there. Part of the problem is that Firefox is complaining about a css property and throwing an error - not a Xinha problem of course - Mozilla & IE don't complain.

Error: Unknown property 'filter'.  Declaration dropped.
    Source File: http://localhost/XINHA/htmlarea.css
    Line: 50

.htmlarea .toolbar .buttonDisabled img {
  filter: gray() alpha(opacity = 25);
  -moz-opacity: 0.25;
}

Offline

#3 2006-09-10 10:46:54

koto
Xinha Pro
Registered: 2006-01-09
Posts: 58

Re: Firefox and Web Developers toolbox extension

The filter property warning you mentioned is the result of using IE 5.x / 6.x specific way of setting opacity for disabled buttons. As rendering engine simply skips unknown propertfies in CSS files, it does not case any trouble in UI. I personally would not be concerned about errors showing up while strict warnings are shown up by Webdeveloper extension. But - still - this is just my personal opinion.

Offline

Board footer

Powered by FluxBB