Prevent errors in svg-editor when imagelib extension is used; Update imagelib to proper HTML5 with charset
git-svn-id: http://svg-edit.googlecode.com/svn/trunk@2611 eee81c28-f429-11dd-99c0-75d572ba1dddmaster
parent
a682236528
commit
2b35ec344b
|
@ -1,14 +1,15 @@
|
||||||
<!doctype html>
|
<!DOCTYPE html>
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
|
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
|
||||||
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|
||||||
<h1>Select an image:</h1>
|
<h1>Select an image:</h1>
|
||||||
<a href="smiley.svg">smiley.svg</a>
|
<a href="smiley.svg">smiley.svg</a>
|
||||||
<br>
|
<br>
|
||||||
<a href="../../images/logo.png">logo.png</a>
|
<a href="../../images/logo.png">logo.png</a>
|
||||||
</body>
|
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
|
|
||||||
|
@ -62,3 +63,5 @@ $('a').click(function() {
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
|
@ -4612,7 +4612,7 @@
|
||||||
try {
|
try {
|
||||||
window.addEventListener('message', function(e) {
|
window.addEventListener('message', function(e) {
|
||||||
// We accept and post strings for the sake of IE9 support
|
// We accept and post strings for the sake of IE9 support
|
||||||
if (typeof e.data !== 'string') {
|
if (typeof e.data !== 'string' || e.data.charAt() === '|') {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
var data = JSON.parse(e.data);
|
var data = JSON.parse(e.data);
|
||||||
|
|
Loading…
Reference in New Issue