diff --git a/src/platforms/web/server/util.js b/src/platforms/web/server/util.js index 00dd7843e81..274897050a3 100644 --- a/src/platforms/web/server/util.js +++ b/src/platforms/web/server/util.js @@ -19,7 +19,7 @@ const isAttr = makeMap( ) const unsafeAttrCharRE = /[>/="'\u0009\u000a\u000c\u0020]/ -export const isSSRUnsafeAttr = name => { +export const isSSRUnsafeAttr = (name: string): boolean => { return unsafeAttrCharRE.test(name) } diff --git a/test/unit/features/directives/model-checkbox.spec.js b/test/unit/features/directives/model-checkbox.spec.js index 2b73e23d302..7d48dd1b8ad 100644 --- a/test/unit/features/directives/model-checkbox.spec.js +++ b/test/unit/features/directives/model-checkbox.spec.js @@ -337,7 +337,7 @@ describe('Directive v-model checkbox', () => { expect(vm.$el.children[1].textContent).toBe('false') }).then(done) }) - + // #7811 it('type should not be overwritten by v-bind', () => { const vm = new Vue({