jeluard / lucuma

Web Components library for ClojureScript
96 stars 8 forks source link

Improve access to light DOM #12

Closed jeluard closed 9 years ago

jeluard commented 11 years ago

HTML elements nested in a custom element (light DOM) can be referenced in the shadow DOM with HTMLContentElement (e.g. [:div [:content {:select ".come-class"}])`. While interesting this feature is pretty limited and cannot be extended.

Alternatively those elements can be accessed via this.innerHTML as a String. This combined with HTML parsers (like hickory) offers much better manipulation options.

This should work hand in hand with #8.

jeluard commented 10 years ago

This discussion might be relevant.

jeluard commented 10 years ago

This discussion is relevant.

jeluard commented 9 years ago

Wait for more ShadowDOM patterns to emerge.