mirror of https://github.com/sveltejs/svelte
Merge pull request #869 from sveltejs/gh-868
Escape sigils in .textContent and .innerHTMLpull/870/head
commit
54bbeeae8b
@ -1,7 +1,29 @@
|
|||||||
export default {
|
export default {
|
||||||
html: `
|
html: `
|
||||||
|
@x
|
||||||
@@x
|
@@x
|
||||||
|
#foo
|
||||||
|
##foo
|
||||||
%1
|
%1
|
||||||
%%2
|
%%2
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@x
|
||||||
|
@@x
|
||||||
|
#foo
|
||||||
|
##foo
|
||||||
|
%1
|
||||||
|
%%2
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@x
|
||||||
|
@@x
|
||||||
|
#foo
|
||||||
|
##foo
|
||||||
|
%1
|
||||||
|
%%2
|
||||||
|
<span>inner</span>
|
||||||
|
</div>
|
||||||
`
|
`
|
||||||
};
|
};
|
||||||
|
@ -1,3 +1,25 @@
|
|||||||
|
@x
|
||||||
@@x
|
@@x
|
||||||
|
#foo
|
||||||
|
##foo
|
||||||
%1
|
%1
|
||||||
%%2
|
%%2
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@x
|
||||||
|
@@x
|
||||||
|
#foo
|
||||||
|
##foo
|
||||||
|
%1
|
||||||
|
%%2
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
@x
|
||||||
|
@@x
|
||||||
|
#foo
|
||||||
|
##foo
|
||||||
|
%1
|
||||||
|
%%2
|
||||||
|
<span>inner</span>
|
||||||
|
</div>
|
||||||
|
Loading…
Reference in new issue