Skip to content

jsxClosingTag does not return closing tag inside tag body #25552

@mjbvz

Description

@mjbvz

TypeScript Version: 3.0.0-dev.20180706

Search Terms:

  • jsxClosingTag
  • jsx
  • tag closing

Code
For the code:

const a = <div>
    <div>
</div>

Request tag closing after the inner <div>

Expected behavior:
A closing div tag is returned. Even though the current tag appears closed in the code's before state, it leaves the outer div mismatched.

Actual behavior:
No closing tag is returned

Playground Link:

Related Issues:

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptFixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions