Recently, I discovered that Internet Explorer flat-out doesn’t support certain selectors in jQuery (see Why can’t Internet Explorer run this simple jQuery?). My question is: how can I know that my code will actually work while I’m writing it? Since I’m on Linux, my options are really just Chrome and Firefox. Is there a tool which emulates the functionality of major browsers for testing compatibility for a given site? My entire script mentioned in the above post failed for a few reasons but largely because the selector didn’t get anything.
I initially thought that jQuery was cross-browser compliant, but it seems that selectors vary from browser to browser. Is there a way of testing for this?
Being a Linux user doesn’t mean that you cannot use Internet Explorer. Create and start a Virtual Machine, such as VirtualBox, and simulate Windows + Internet Explorer.