> if (document.querySelector) {
> // Supported
> } else {
> // Not suported
> }Too bad that only works with ecmascript. Such syntax is not valid in other languages.
> if (document.querySelector) {
> // Supported
> } else {
> // Not suported
> }Too bad that only works with ecmascript. Such syntax is not valid in other languages.