This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
the sample code suggests: if (!event.target.razzle) {… However, when you have multiple revisions of an API, it is likely some api functions will be deprecated. This introduces a dependency on this api function all for just testing if an upgrade event has occurred. I think we might be better served if we have an 'upgraded' property or something like that? Or maybe completely different way of testing.
Routing to custom elements.
Probably the best way to do this test is: if (!(y instanceof FancyButton)) { … This seems pretty clean; it does not depend on the specifics of the FancyButton interface and it is clear that the "else" branch can depend on that interface.
I think that this is an Explainer bug; the example mentioned in Comment 1 is was in the Explainer.
This has been fixed. The specific 'razzle' example has been removed from the explainer, and there's commentary in there now about using :unresolved to determine whether an element has been upgraded.