Automatically check browser compatibility

Although the HTML / CSS page is 100% valid according to http://validator.w3.org/ the page can still be broken in some browsers (* cough * IE7 * cough *).

Is there a unittest / validation tool that parses html, css and javascript and looks for the DOM for known browser errors. Similar to using "position: relative" in conjunction with jQuery.slideUp ()

+3
source share
1 answer

This is difficult with static analysis. You could have position: relativein a class that you applied with an event handler to several elements, one of which you later selected by id and called slideUp()on. The scan tool you need will require browser tools and must trigger all kinds of events to find these dangerous patterns.

Since Microsoft browsers are so excellent and probably can give you some new problems that no one has previously encountered, it is difficult to avoid manually checking the time; and on your way to finding the accidents that they created just for you, you will catch more mundane.

+1
source

Source: https://habr.com/ru/post/1790411/


All Articles