phosphor-icons / webcomponents

A flexible icon family for the web
Other
12 stars 2 forks source link

fix(lib): remove `<slot>` as it does not work with SVG namespace #7

Closed rektdeckard closed 2 months ago

rektdeckard commented 2 months ago

SVG element content is not a valid child of a <slot>, only HTML namespaced elements may be passed into shadow DOM. Thus, we're removing it as it does nothing and was causing crashes in headless testing scenarios.

Fixes #6