mirror of https://github.com/sveltejs/svelte
parent
5884b8fa5f
commit
a86e52b174
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': minor
|
||||
---
|
||||
|
||||
feat: XHTML compliance
|
@ -1,6 +1,6 @@
|
||||
/** @param {string} html */
|
||||
export function create_fragment_from_html(html) {
|
||||
var elem = document.createElement('template');
|
||||
elem.innerHTML = html;
|
||||
elem.innerHTML = html.replaceAll('<!>', '<!---->'); // XHTML compliance
|
||||
return elem.content;
|
||||
}
|
||||
|
Loading…
Reference in new issue