ryeguy
ryeguy

Reputation: 66851

How does raphael.js work with older browsers if they don't support SVG?

Raphael uses SVG for rendering, which is only supported on IE9 (and not even fully). How does it render on IE6-8? I can't find any mention of this on the site.

Upvotes: 2

Views: 449

Answers (1)

vcsjones
vcsjones

Reputation: 141598

If I am not mistaken; Raphael makes use of Internet Explorer's VML feature for <= 8. VML was Microsoft's version of SVG before they decided to drop development of VML (but continue to support it) in favor of SVG. In fact, search the home page for "VML" and that is what they say:

Raphaël ['ræfeɪəl] uses the SVG W3C Recommendation and VML as a base for creating graphics. This means every graphical object you create is also a DOM object, so you can attach JavaScript event handlers or modify them later.

Emphasis mine.

Upvotes: 5

Related Questions