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
{{ message }}
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
[RestrictChildren("div")]
[HtmlTargetElement]
public class MyTagHelper : TagHelper
{
}
<p><my><div></div></my></p>
Expected: This should render MyTagHelper correctly
Actual: The <my> tag is not allowed by parent <p> tag helper. Only child tags with name(s) 'div' are allowed.
The text was updated successfully, but these errors were encountered:
The doc comments for HtmlTargetElementAttribute could be improved. The default constructor summary should specify what * means - you shouldn't have to read the remarks.
Also, the error message doesn't specify clearly which tag helper is causing the issue. What if you have multiple tag helpers targeting <p>?
Expected: This should render MyTagHelper correctly
Actual:
The <my> tag is not allowed by parent <p> tag helper. Only child tags with name(s) 'div' are allowed.
The text was updated successfully, but these errors were encountered: