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
This algorithm has 4 fairly equivalent steps to create a new element. Is there a way to do the top-level conditionals differently so this can be a shared step? It seems that might be a little cleaner.
The text was updated successfully, but these errors were encountered:
It seems reasonably doable. Would have to think about it a little bit, but if you know it's not the 4.1 substeps (through a conditional that seems like it can be created) and you make sure "element interface" returns HTMLElement to handle the 4.2 substeps case you can allocate an element early (and an otherwise statement to handle the constructor dance).
Then the following steps can handle details around is="" attributes and whether or not to queue something.
The algorithm has changed a decent bit at this point. Still not a fan of this kind of change but you're welcome to make a PR. Untagging v1 to get it off my hotlist.
This algorithm has 4 fairly equivalent steps to create a new element. Is there a way to do the top-level conditionals differently so this can be a shared step? It seems that might be a little cleaner.
The text was updated successfully, but these errors were encountered: