You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 22, 2022. It is now read-only.
Ensure feature works when element was constructed in script
This is a workaround test case for src/preload not working for _elements
upgraded before parsed_. The cause is that at the time of
`attributeChangedCallback`, element does not have access to
parentElemet as they haven't been fully parsed and is not yet connected
to the DOM.
The parsing order is difficult to re-create in test, and even harder to
make explicit, so this test reproduce the issue by creating "a upgraded
details-dialog, not connected to the DOM at the time of attribute
setting".
Note:
`attributeChangedCallback` always happens before `connectedCallback`,
therefore this test will pass if the attribute is set after
`connectedCallback`, triggering another `attributeChangedCallback` which
binds the events.
0 commit comments