Skip to content

"Emmet: remove/update tag" matches wrong tag pair. #39789

@zzJinux

Description

@zzJinux
  • VSCode Version: 1.18.1
  • OS Version: Windows 10 1703

Steps to Reproduce:

  1. Type this:
<div>
  <input>
  <div></div>
</div>
  1. Put cursor on child div and run Emmet: remove/update tag
  2. parent div takes effect

Additional Notes

  • List of void elements that show the same result when they replaces <input>
    • <col>, <embed>, <input>, <param>, <source>, <track>
  • Slash before closing bracket prevents the malfunction. (like <input/> instead of <input>)

Reproduces without extensions: Yes

Metadata

Metadata

Assignees

Labels

bugIssue identified by VS Code Team member as probable bugemmetEmmet related issueshelp wantedIssues identified as good community contribution opportunitiesupstreamIssue identified as 'upstream' component related (exists outside of VS Code)verifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions