-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Transition MVC TagHelpers to use TargetElementAttributes attribute targeting. #2195
Comments
it's likely views would perform better if tag helpers were not created only to no-op. however we should measure things to confirm this is worthwhile since the MVC tag helpers are doing simple checks that work today. specifically:
"any" is too broad. we likely want to target
could you clarify this statement? is this another point about changing the current MVC tag helper behaviours? |
@DamianEdwards Let us know if you think we need to pull this back into the current milestone. |
We should do this now |
@dougbu The ambiguity bit I mentioned will drastically improve |
@NTaylorMullen thanks, that was much clearer |
Now that
TagHelper
s can target attributes we should transition our existingTagHelper
s to utilize this new "required" attributes functionality.One example:
ValidationSummaryTagHelper
shouldn't target "div" elements then no-op if the attribute doesn't exist: It should target theasp-validation-summary
attribute on any HTML element.This should also enable us to no longer have ambiguity between "should I be a tag helper" for all of our tag helpers.
The text was updated successfully, but these errors were encountered: