HTML5 features detection: Canvas Text
you may ask: “If the early browser does not support HTML5 How do I start using it?.” But the question itself would be misleading. HTML5 is just a collection of some of the features, so you can not detect the browser that “whether to support HTML5″, but you can detect whether the browser supports, such as “canvas”, “video”, “geolocation” and so these features.
Canvas Text
Even if your browser supports The Canvas API, there may not support The Canvas Text API, because The Canvas
API is constantly adding new robust continuous content, the text method is then later join into, and some browsers to achieve the completion of The Canvas
API time, The Text API has not been joined, in this case, it will happen to your Browser support The Canvas API does not support The
Canvas Text API.
to detect whether the browser supports The Canvas Text API, then you can use the previously mentioned second method of detection methods. If your browser supports The
Canvas
API, then used to detect when there are elements created
Tags: html5canvas