I got a problem with attributes processing in viewHtml mode
There is steps to reproduce:
1. Create Editor with "viewHtml" button
2. Open "View Html" dialog by clicking on "View Html" button
3. Put the html code as below:
<img height="157" width="314" on="" k-script-on="" />
4. Click on Update button
Uncaught TypeError: Cannot read property 'nodeName' of undefined
in _preventScriptExecution function
The bug is in processing of attributes: on="" k-script-on=""
When the code below is run
this.setAttribute("k-script-" + name, attribute.value);
the "attributes.length" changing and the variables "i" and "l" is wrong
Is it posible to fix it?