Skip to content

Adding closing bracket (>) in attribute quotation marks is causing repeated auto-complete of closing tag. #547

@joshuacookdev

Description

@joshuacookdev

When the extension is enabled (v 0.17.0), if you accidentally type your closing bracket inside of the quotation marks:

<element attribute="value" (i.e. <element attribute="value>"), autocomplete attempts to add the closing tag .

However, it's registering each added closing tag as a new closing bracket and attempting to add more closing tags. This happens repeatedly, and can lead to output similar to the following until the user presses another key:

<element attribute="value></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element></element>" (and continues going).

To prevent this behavior, the extension could either:

  1. Not attempt to auto-close the element in cases where a closing tag is added inside of an attribute value,
  2. Move the curson and place the closing tag outside of the quotation marks, or
  3. Limit itself to one closing tag, if possible.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions