svg -> foreign object -> iframe to load and render arbitrary html inside SVG (based on Matt Finkle article)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Editor backup files | |
*.bak | |
*~ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<body> | |
<p>SVG as per Finkle</p> | |
<p style="color: red;" > WARNING: NoScript barfs a hairball about it being click-jacking when you click on links inside the iframe</p> | |
<svg width="960" height="850"> | |
<g transform="translate(300, 0) rotate(20)"> | |
<foreignObject x="10" y="10" width="800" height="800"> | |
<body xmlns="http://www.w3.org/1999/xhtml"> | |
<iframe src="http://starkravingfinkle.org/blog" style="width:700px;height:700px"></iframe> | |
</body> | |
</foreignObject> | |
</g> | |
</svg> | |
<script type="text/javascript" src="http://gerhobbelt.github.com/bl.ocks.org-hack/fixit.js" ></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment