Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.add('document.createElement', () => {
const el = document.createElement('button');
el.innerText = 'click me';
el.foo = 'bar';
el.addEventListener('click', e => alert(e.target.foo));
return el;
})
.add('lit-html', () => html`