-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HTML插值绑定有BUG #3
Comments
实在太感谢你的测试了,这个BUG已经修复 "html": function(data, vmodels) { watchView(data.value, vmodels, data, function(val, elem) { val = val == null ? "" : val + "" if (data.replaceNodes) { domParser.innerHTML = val var replaceNodes = [] while (domParser.firstChild) { replaceNodes.push(domParser.firstChild) documentFragment.appendChild(domParser.firstChild) } elem.insertBefore(documentFragment, data.replaceNodes[0]); for (var i = 0, node; node = data.replaceNodes[i++]; ) { elem.removeChild(node) } data.replaceNodes = replaceNodes } else { elem.innerHTML = val } }) }, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
photo.js
photo.html
初次显示很OK,但是当vm.monument进行变动时:
如果使用
{{md.descriptions|html}}
会抛出异常:The text was updated successfully, but these errors were encountered: