Skip to content
This repository was archived by the owner on Dec 19, 2018. It is now read-only.
This repository was archived by the owner on Dec 19, 2018. It is now read-only.

Specifying RestrictChildren and empty HtmlTargetElement results in an error #562

Closed
@pranavkm

Description

@pranavkm
[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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions