
- Javascript Basics Tutorial
- Javascript - Home
- Javascript - Overview
- Javascript - Syntax
- Javascript - Enabling
- Javascript - Placement
- Javascript - Variables
- Javascript - Operators
- Javascript - If...Else
- Javascript - Switch Case
- Javascript - While Loop
- Javascript - For Loop
- Javascript - For...in
- Javascript - Loop Control
- Javascript - Functions
- Javascript - Events
- Javascript - Cookies
- Javascript - Page Redirect
- Javascript - Dialog Boxes
- Javascript - Void Keyword
- Javascript - Page Printing
- JavaScript Objects
- Javascript - Objects
- Javascript - Number
- Javascript - Boolean
- Javascript - Strings
- Javascript - Arrays
- Javascript - Date
- Javascript - Math
- Javascript - RegExp
- Javascript - HTML DOM
- JavaScript Advanced
- Javascript - Error Handling
- Javascript - Validations
- Javascript - Animation
- Javascript - Multimedia
- Javascript - Debugging
- Javascript - Image Map
- Javascript - Browsers
- JavaScript Useful Resources
- Javascript - Questions And Answers
- Javascript - Quick Guide
- Javascript - Functions
- Javascript - Resources
Detect compatibility of the new HTML5 tag with jQuery.
Use the following to check the compatibility of the HTML5 tag <mark>:
var $myEL = $('<mark>'); $myEL.appendTo('body'); var bgColor = $myEL.css('backgroundColor'); if (/rgb\(255\, 255\, 0\)/.test(bgColor)) return true; else return false;
- Related Articles
- Backward compatibility with HTML5
- How to trust backward compatibility with HTML5
- Working with tag in HTML5
- Detect folders in Safari with HTML5
- HTML5 tag
- Websockets Apache Server compatibility in HTML5
- How to create a new img tag with JQuery, with the src and id from a JavaScript object?
- Play local (hard-drive) video file with HTML5 video tag?
- HTML5 New Tags
- Using Modernizr to detect HTML5 features
- Using HTML5 file uploads with AJAX and jQuery
- How to detect HTML5 audio MP3 support
- How to detect eventType in jQuery?
- How to set new id attribute with jQuery?
- HTML5 tag on Android for PhoneGap application

Advertisements