diff --git a/builds/knockout/spec/bindingAttributeBehaviors.js b/builds/knockout/spec/bindingAttributeBehaviors.js index bc40e142..c81d2f6c 100644 --- a/builds/knockout/spec/bindingAttributeBehaviors.js +++ b/builds/knockout/spec/bindingAttributeBehaviors.js @@ -594,7 +594,7 @@ describe('Binding attribute syntax', function() { expect(testNode).toContainHtml('
replaced
replaced
'); }); - it('', function() { + xit('', function() { //Disabled because TKO allows binding in elements document.createElement('template'); // For old IE testNode.innerHTML = "Hello
testGoodbye
"; ko.applyBindings({ sometext: 'hello' }, testNode); diff --git a/package.json b/package.json index be2bd089..85c679bc 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "type": "git", "url": "https://github.com/knockout/tko.git" }, - "scripts": {}, + "scripts": { + "test": "make sweep && make && make test-headless" + }, "bugs": "https://github.com/knockout/tko/issues", "licenses": [ { diff --git a/packages/bind/spec/bindingAttributeBehaviors.ts b/packages/bind/spec/bindingAttributeBehaviors.ts index aa62bc5a..f507eef2 100644 --- a/packages/bind/spec/bindingAttributeBehaviors.ts +++ b/packages/bind/spec/bindingAttributeBehaviors.ts @@ -876,10 +876,9 @@ describe('Binding attribute syntax', function () { }) it('', function () { - document.createElement('template') // For old IE testNode.innerHTML = 'Hello
testGoodbye
' applyBindings({ sometext: 'hello' }, testNode) - expect(testNode).toContainHtml('replaced
testreplaced
') + expect(testNode).toContainHtml('replaced
replacedreplaced
') }) }) diff --git a/packages/bind/src/applyBindings.ts b/packages/bind/src/applyBindings.ts index 84497679..1de4e59b 100644 --- a/packages/bind/src/applyBindings.ts +++ b/packages/bind/src/applyBindings.ts @@ -49,12 +49,8 @@ type BindingHandlerOrUndefined = (typeof BindingHandler & BindingHandler) | unde const bindingDoesNotRecurseIntoElementTypes = { // Don't want bindings that operate on text nodes to mutate