Skip to content

TagHelperContext.AllAttributes missing attributes after commented attribute #12261

@Buildstarted

Description

@Buildstarted

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Commenting out an attribute in an element that is processed by a taghelper the context.AllAttributes is missing attributes that appear after the commented attribute.

<p
  attribute-1="true"
  @* visible *@
  not-visible></p>

Expected Behavior

All attributes in an element to appear in the AllAttributes property.

Steps To Reproduce

TagHelperBugFinder.zip

Exceptions (if any)

No response

.NET Version

9.0.305

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-compilerUmbrella for all compiler issues

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions