-
Notifications
You must be signed in to change notification settings - Fork 6
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
Model <!--ignore--> as its own type and implement the ignoring via an assertion #220
Model <!--ignore--> as its own type and implement the ignoring via an assertion #220
Conversation
… assertion Fixes <!--ignore--> as the top-level to satisfy RHS.
Pull Request Test Coverage Report for Build 820
💛 - Coveralls |
This is an incredibly elegant solution given the mechanisms available in Unexpected. The modelling of the types in these assertions are such a glove for the DOM that I get this in concept but only just in details. |
@papandreou this is brilliant and how I should have made it in the first place - thanks 👍 |
I'll merge this as @alexjeffburke okayed it. |
Great! I wonder if the same idea can be used for |
Yes that would make sense. |
You can probably just add the new type to all of the ignore assertions you added. |
I actually think we should remove the custom element ignore again. It is not documented and can't be used from unexpected-reaction. It doesn't have an element prefix, so it is not a real custom tag, and I prefer to just have one way. Would that be okay with you? |
@sunesimonsen I'd like to second you on this one - I think the rationale is solid and, for example, knockout now bans such tag definitions for custom elements outright to avoid problems with them which might be a useful datapoint. |
Fixes
<!--ignore-->
as the top-level to satisfy RHS.