Dijit/Editor image problem with IE9
Only with Internet Explorer 9, images doesn't render in dijit/Editor widget when they are width and height attribute.
And other problem (i don't know if it's linked with thirst problem), always only with IE9, when i use ViewSource? plugin and i see code source of the editor content, tags width and height attributes of the image take alt value.
Simple example :
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Testt</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<script>
dojoConfig= {
has: {
"dojo-firebug": true
},
parseOnLoad: true,
isDebug: true,
async:true
};
</script>
<script src="http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dojo/dojo.js" type="text/javascript"></script>
<style type='text/css'>
@import 'http://ajax.googleapis.com/ajax/libs/dojo/1.7.2/dijit/themes/claro/claro.css';
</style>
</head>
<body class="claro">
<b>Toggle the View Source button to see the contents in source mode.</b>
<br>
<div data-dojo-type="dijit.Editor" id="editor" extraplugins="['viewsource']">
Simple image test :
<img alt="test" width="150" height="88" id="bibli_WR4479" src="http://img.viralpatel.net/dojo-toolkit-javascript-framework-logo.png" title="test" />
</div>
</body>
</html>
<script>
require([
"dojo/parser",
"dijit/Editor",
"dijit/_editor/plugins/ViewSource"
]);
</script>
I do reproduce it, due to this line:
returning corrupted HTML (this is from reading the initial editor value as specified in markup). dn.innerHTML is the right value.