NO_MODIFICATION_ALLOWED_ERR:DOM异常7:尝试修改在Android上不允许修改的对象

时间:2013-07-02 17:53:28

标签: javascript android

我使用英特尔的App Framework创建了一个Android应用程序。它适用于Android 3.0及更新版本。但它不适用于其他低版本。我收到了错误

NO_MODIFICATION_ALLOWED_ERR: DOM Exception 7: An attempt was made to modify an object where modifications are not allowed. at path-to/appframework.js:529

这对应于App Framework的以下部分

514 html: function(html, cleanup) {
515             if (this.length === 0)
516                 return this;
517             if (html === nundefined)
518                 return this[0].innerHTML;
519
520             for (var i = 0; i < this.length; i++) {
521                 if (cleanup !== false)
522                     $.cleanUpContent(this[i], false, true);
523                 if (isWin8) {
524                     var item=this[i];
525                     MSApp.execUnsafeLocalFunction(function() {
526                         item.innerHTML = html;
527                     });
528                 } else
529                     this[i].innerHTML = html;
530             }
531             return this;
532         },

这个问题可能是什么原因。我希望有人帮忙。我不知道为什么它在新的Android版本上没问题,也没有在旧的Android版本上工作。

0 个答案:

没有答案