virtual element binding fails in re-written template #494

Closed
mbest opened this Issue May 18, 2012 · 2 comments

Comments

Projects
None yet
1 participant
Owner

mbest commented May 18, 2012

Example: http://jsfiddle.net/mbest/r9Mtg/

Error and stack trace (from Chrome):

Uncaught Error: HIERARCHY_REQUEST_ERR: DOM Exception 3
ko.utils.setDomNodeChildren         knockout-latest.debug.js:180
ko.virtualElements.setDomNodeChildren       knockout-latest.debug.js:1711
executeTemplate     knockout-latest.debug.js:2917
ko.renderTemplate.ko.dependentObservable.disposeWhen        knockout-latest.debug.js:2960
evaluateImmediate       knockout-latest.debug.js:1194
ko.dependentObservable      knockout-latest.debug.js:1248
ko.renderTemplate       knockout-latest.debug.js:2950
ko.bindingHandlers.template.update      knockout-latest.debug.js:3062
ko.dependentObservable.disposeWhenNodeIsRemoved     knockout-latest.debug.js:1997
evaluateImmediate       knockout-latest.debug.js:1194
ko.dependentObservable      knockout-latest.debug.js:1248
applyBindingsToNodeInternal     knockout-latest.debug.js:1949
ko.applyBindingsToNode      knockout-latest.debug.js:2023
ko.templateRewriting.applyMemoizedBindingsToNextSibling     knockout-latest.debug.js:2757
ko.memoization.unmemoize        knockout-latest.debug.js:748
ko.memoization.unmemoizeDomNodeAndDescendants       knockout-latest.debug.js:762
options     knockout-latest.debug.js:2891
invokeForEachNodeOrCommentInContinuousRange     knockout-latest.debug.js:2871
activateBindingsOnContinuousNodeArray       knockout-latest.debug.js:2890
ko.renderTemplateForEach.activateBindingsCallback       knockout-latest.debug.js:2993
ko.utils.setDomNodeChildrenFromArrayMapping     knockout-latest.debug.js:3305
ko.renderTemplateForEach.ko.dependentObservable.disposeWhenNodeIsRemoved        knockout-latest.debug.js:3008
evaluateImmediate       knockout-latest.debug.js:1194
ko.dependentObservable      knockout-latest.debug.js:1248
ko.renderTemplateForEach        knockout-latest.debug.js:2998
ko.bindingHandlers.template.update      knockout-latest.debug.js:3055
ko.dependentObservable.disposeWhenNodeIsRemoved     knockout-latest.debug.js:1997
evaluateImmediate       knockout-latest.debug.js:1194
ko.dependentObservable      knockout-latest.debug.js:1248
applyBindingsToNodeInternal     knockout-latest.debug.js:1949
applyBindingsToNodeAndDescendantsInternal       knockout-latest.debug.js:1917
applyBindingsToDescendantsInternal      knockout-latest.debug.js:1899
applyBindingsToNodeAndDescendantsInternal       knockout-latest.debug.js:1926
ko.applyBindings        knockout-latest.debug.js:2036
(anonymous function)        fiddle.jshell.net:45

mbest referenced this issue May 18, 2012

Merged

Templating fixes #144

@mbest mbest added a commit that referenced this issue Aug 17, 2012

@mbest mbest Fix new spec so it works in IE. Ensure virtual elements with newlines…
… work in rewritten templates: requires fix for #494 also.
a6377f1
Owner

mbest commented Aug 17, 2012

only the last commit counts.

Owner

mbest commented Aug 21, 2012

fixed with #279

mbest closed this Aug 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment