mirror of https://github.com/sveltejs/svelte
Merge pull request #1408 from sveltejs/gh-1407
mark elements with refs as ineligible for innerhtmlpull/1414/head
commit
ea95ae741e
@ -0,0 +1,7 @@
|
||||
export default {
|
||||
html: '<div><canvas></canvas></div>',
|
||||
test ( assert, component, target ) {
|
||||
const canvas = target.querySelector( 'canvas' );
|
||||
assert.equal( canvas, component.refs.foo );
|
||||
}
|
||||
};
|
@ -0,0 +1 @@
|
||||
<div><canvas ref:foo></canvas></div>
|
Loading…
Reference in new issue