mirror of
https://github.com/jlengrand/open-wc.git
synced 2026-03-10 08:31:19 +00:00
fix(scoped-elements): make code ie11 compatible
This commit is contained in:
committed by
Lars den Bakker
parent
4d8143cb62
commit
08483df864
@@ -62,7 +62,7 @@ const transformTemplate = (strings, scopedElements, templateCache, tagsCache) =>
|
||||
const tag = registerElement(tagName, scopedElements[tagName], tagsCache);
|
||||
const start = item.index + block.length - tagName.length;
|
||||
const end = start + tagName.length;
|
||||
const isClosingTag = block.startsWith('</');
|
||||
const isClosingTag = block.indexOf('</') === 0;
|
||||
|
||||
acc =
|
||||
acc.slice(0, start) +
|
||||
|
||||
Reference in New Issue
Block a user