You have an XHTML page that will be used as text/html . Change the server to serve your page as application/xhtml+xml or include the following as the first element in the <head> :
<meta http-equiv="content-type" content="application/xhtml+xml; charset=utf-8" />
If Safari interprets your XHTML page as HTML, it will not interpret SVG elements as anything other than custom markup.
For reference, here is an example of SVG in XHTML that works in Safari, including using JavaScript to create SVG elements.
Change In addition, you have broken XHTML; tag <link> no self-closing marker; see verification results .
The real problem, however, is that you have a broken URI for your <script> element when referencing jQuery:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js" type="text/javascript"></script>
Follow the correct "http:" at the beginning of this URI and you will find your page working (if you fix the other two problems).
source share