Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

Possibly a better alternative to parsing innerHTML #112

Open
treshugart opened this issue Aug 10, 2016 · 0 comments
Open

Possibly a better alternative to parsing innerHTML #112

treshugart opened this issue Aug 10, 2016 · 0 comments

Comments

@treshugart
Copy link
Member

treshugart commented Aug 10, 2016

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

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant