/    Sign up×
Community /Pin to ProfileBookmark

How to find bad CSS and javascript statements within Firefox?

It happens sometimes that I wrote and apply buggy CSS & Javascript/jQuery scripts into a webpage.

An errorneous CSS rule could be

.myclassname { width: 1024kk !important; }};

or a javascript

var pane = document.getElementsByClassName(“page-header-meta”)[0];

does not find at least 1 instance of the class.

So the remaining statements of such a scripts are not executed.

How can I find out (in Firefox) which statement is causing the trouble?

The webdeveloper pane at the bottom is not really useful.

I have problems finding in it errors or warnings which come from my focussed *.css or *.user.js script (errors from other *.css and *.user.js) should be excluded.

How can I achieve a better/faster error search?

Peter

to post a comment

2 Comments(s)

Copy linkTweet thisAlerts:
@cootheadSep 17.2020 — Hi there pstein,

are you not using the...

[url=https://jigsaw.w3.org/css-validator/][color=#069][u]W3C - CSS Validation Service[/u][/color][/url]

...[b]???[/b]

[i]coothead[/i]
Copy linkTweet thisAlerts:
@VITSUSASep 18.2020 — Coothead, you are right , this is best website for CSS validation which shows parse error, value error, etc...of the website. It shows warnings and errors as well.
×

Success!

Help @pstein spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 4.24,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...