R
R
Rrooom2014-08-16 10:42:06
JavaScript
Rrooom, 2014-08-16 10:42:06

Are there any static js analyzers that check the cross-browser compatibility of the code?

Everyone suggests testing in live browsers, is it really so difficult? Poeche in jshintah and lint this is not?
After all, it is known which EcmaScript standard is implemented in each browser, which objects in which browser can be used and which cannot (for example, FIle), which selectors and functions are supported (there, built-in css selectors, calls to localstorage)?
UPD
I'm talking about caniuse, html5please and the like. But the programmer must use them. I'm thinking of expanding, or writing my own linter, so that it automatically checks the code and reports an approximate version of the browser in which the code can work. But if it hasn't been implemented yet, why isn't it possible.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey, 2014-08-16
@Rrooom

https://github.com/azproduction/autopolyfiller is the most suitable for your description.
but there is a difference between "static analyzers" and linters and similar tools. As far as I remember, there are no static analyzers for js in principle. There are of course all sorts of plato , but it's still not right.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question