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-75d572ba1ddd
master
Brett Zamir 2013-10-29 03:43:10 +00:00
parent a682236528
commit 2b35ec344b
2 changed files with 8 additions and 5 deletions

View File

@ -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>
</head>
<body>
<h1>Select an image:</h1>
<a href="smiley.svg">smiley.svg</a>
<br>
<a href="../../images/logo.png">logo.png</a>
</body>
<script>
@ -62,3 +63,5 @@ $('a').click(function() {
});
</script>
</body>
</html>

View File

@ -4612,7 +4612,7 @@
try {
window.addEventListener('message', function(e) {
// 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;
}
var data = JSON.parse(e.data);