Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Latest hyperHTML with proper Custom Elements initialization #51

Merged
merged 1 commit into from
Sep 29, 2017
Merged

Latest hyperHTML with proper Custom Elements initialization #51

merged 1 commit into from
Sep 29, 2017

Conversation

WebReflection
Copy link
Contributor

@WebReflection WebReflection commented Sep 28, 2017

Due to issue #671
it is not possible to synchronously set attributes passing
through the custom element prototype when an element
comes from a template and it's not already live.

Previous version of hyperHTML was somehow cheating and
attaching properties to the element directly,
shadowing its inherited behaviour after upgrade to CE.

The issue is explained in here:
WICG/webcomponents#671 (comment)

This PR uses live nodes instad of template one
so that the test passes without needing any special tratment.

Due to issue [#671](WICG/webcomponents#671)
it is not possible to synchronously set attributes passing
through the custom element prototype when an element
comes from a template and it's not already live.

Previous version of hyperHTML was somehow cheating and
attaching properties to the element directly,
shadowing its inherited behaviour after upgrade to CE.

The issue is explained in here:
WICG/webcomponents#671 (comment)

This PR uses live nodes instad of template one
so that the test passes without needing any special tratment.
@WebReflection
Copy link
Contributor Author

P.S. instead of using asynchronous tests, I now use live nodes like any other library so that properties test passed without any issue.

@robdodson
Copy link
Contributor

Sorry meant to merge this while following up on the other threads last night. Looks good to me, thanks for the update :)

@robdodson robdodson merged commit be62cd0 into webcomponents:master Sep 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants