Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
GianlucaGuarini committed May 29, 2021
1 parent 61bf522 commit 9d7de9f
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 8 deletions.
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,6 @@
"typescript": "^4.3.2"
},
"dependencies": {
"@riotjs/util": "^2.0.2"
"@riotjs/util": "^2.0.3"
}
}
14 changes: 14 additions & 0 deletions test/core.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
})
})

0 comments on commit 9d7de9f

Please sign in to comment.