1

My website uses a variety of technologies, such as JQuery, new CSS definitions (e.g., moz-selection, -webkit-user-select), etc.

The site works perfectly with Google Chrome and Safari, but has some quirkiness in Firefox, IE, and some of the other browsers.

I want to write a script to check for necessary browser features but, with several thousand lines of code and CSS definitions, I'm not certain which features I should be looking for.

Is there some sort of online analysis (similar to how JSLint operates) that would tell me which features my script and CSS files need? Are there tools (like FireBug) that provide this info?

7
  • Perhaps Common feature tests and links therein are useful (to check which browser supports which features). An automated file search is the other thing I can think of (I don't know any parser like that). Commented Jun 6, 2010 at 23:05
  • It should be noted that moz-selection and webkit-user-selection aren't standard, so if you're using them, thats why you're not getting consistent behavior across browsers. Commented Jun 6, 2010 at 23:20
  • Marcel: Thank you for your answer. It sure would be great if there was a parser for that. Commented Jun 7, 2010 at 15:39
  • Itz: Thank you also. So far, the style differences have been minor. I have stranger problems. For instance, I let users upload photos that appear inside as img frames inside of a div. They can then navigate to another div, which I animate via JQuery slide. It works fine for most browsers, including those I didn't mention above, but in Firefox, when the user returns/animates back to the div, the img frames are empty. If s/he goes away and comes back a second time, the images are completely hidden. In other browsers, the image appearance persists, as it should. Commented Jun 7, 2010 at 15:41
  • Alan, use an at-sign before a user name to notify him, see meta.stackexchange.com/questions/43019/… Commented Jun 7, 2010 at 16:27

1 Answer 1

1

I don't think ull ever find that fabulous script.
As an alternative Modernizr and IE7 JS will probably satisfy most of your needs for now.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for this. I had never heard of Modernizr.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.