dotnet / dotnet/aspnetcore

allow HtmlTargetElementAttribute to be inherited

Open
#50,970 0 comments 0 reactions 0 assignees View on GitHub
area-mvc
Dominant language
C#
Stars
38.4k
Forks
10.9k
Avg merge
2d 6h
Merged PRs (30d)
290

Description

### Is there an existing issue for this?

- [X] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

I have a need to have a group of TagHelpers which are consistent with regards to their html element attributes; I current have to annotate each TagHelper implementation duplicating code and increasing risk of mismatching attribution and increasing complexity when updating common attributes shared across html elements.

### Describe the solution you'd like

IMHO It would be goo to allow the HtmlTargetElementAttribute to be inherited for either an interface or base class where tag attributes are repeated across a number of tag helpers and/or defined by a TagHelper contract (interface)

### Additional context

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.