diff --git a/package-lock.json b/package-lock.json index 954bf59..9c4db2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "5.1.1", "license": "MIT", "dependencies": { - "@riotjs/util": "^2.0.2" + "@riotjs/util": "^2.0.3" }, "devDependencies": { "benchmark": "^2.1.4", @@ -393,9 +393,9 @@ } }, "node_modules/@riotjs/util": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@riotjs/util/-/util-2.0.2.tgz", - "integrity": "sha512-1UYavIex5+5uH7vjOZ4o8j0Hm6Mwt9p1vZfdR8Jl7y0aSEzYmWVYJCP7KfOiU4EoVNuk3tBTW6ju2Ik4sf0coA==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@riotjs/util/-/util-2.0.3.tgz", + "integrity": "sha512-qNQsWWLpdRaEN8Yq2AH5limQYtf8MAI6j215P5jSTu4733dexdqdpeEA9wZwVAISqpLnY0hnNzfS3N+oLDJJbw==" }, "node_modules/@sinonjs/commons": { "version": "1.8.3", @@ -4811,9 +4811,9 @@ "dev": true }, "@riotjs/util": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@riotjs/util/-/util-2.0.2.tgz", - "integrity": "sha512-1UYavIex5+5uH7vjOZ4o8j0Hm6Mwt9p1vZfdR8Jl7y0aSEzYmWVYJCP7KfOiU4EoVNuk3tBTW6ju2Ik4sf0coA==" + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/@riotjs/util/-/util-2.0.3.tgz", + "integrity": "sha512-qNQsWWLpdRaEN8Yq2AH5limQYtf8MAI6j215P5jSTu4733dexdqdpeEA9wZwVAISqpLnY0hnNzfS3N+oLDJJbw==" }, "@sinonjs/commons": { "version": "1.8.3", diff --git a/package.json b/package.json index dfd38f1..451edb0 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,6 @@ "typescript": "^4.3.2" }, "dependencies": { - "@riotjs/util": "^2.0.2" + "@riotjs/util": "^2.0.3" } } diff --git a/test/core.spec.js b/test/core.spec.js index adad588..2377fbf 100644 --- a/test/core.spec.js +++ b/test/core.spec.js @@ -319,4 +319,18 @@ describe('core specs', () => { el.unmount() }) + + it('The content attribute doesn\'t break the rendering (https://github.com/riot/riot/issues/2913)', () => { + const target = document.createElement('div') + + target.content = true + + const el = template( + 'Hello' + ).mount(target, {}) + + expect(target.innerHTML).to.be.equal('Hello') + + el.unmount() + }) })