named-slots icon indicating copy to clipboard operation
named-slots copied to clipboard

Possibly a better alternative to parsing innerHTML

Open treshugart opened this issue 8 years ago • 0 comments

See: https://github.com/webcomponents/webcomponentsjs/blob/3ea23df8bc0f45d44fc903b706d379d7d50aba29/src/ShadowDOM/wrappers/HTMLElement.js#L154. I found this from this comment: https://github.com/webcomponents/webcomponentsjs/issues/511#issuecomment-238486248.

It seems that we should be able to use a similar algorithm to the one in the first link instead of how we're doing it.

This is where it's overridden in a subclass of HTMLElement: https://github.com/webcomponents/webcomponentsjs/blob/3ea23df8bc0f45d44fc903b706d379d7d50aba29/src/ShadowDOM/wrappers/HTMLElement.js#L179.

treshugart avatar Aug 10 '16 12:08 treshugart