Skip to content

Jsx attributes that start with keyword are not handled correctly #4644

Description

@vladima

Attempt to compile code below issues a number of errors:

declare var React: any;
<foo class-id/>
node built\local\tsc.js  --jsx preserve ..\foo.tsx
../foo.tsx(2,11): error TS1003: Identifier expected.
../foo.tsx(2,15): error TS1109: Expression expected.
../foo.tsx(3,1): error TS1109: Expression expected.

Online JSX compiler handles it correctly

Metadata

Metadata

Assignees

Labels

BugA bug in TypeScriptFixedA PR has been merged for this issue

Type

No type
No fields configured for issues without a type.

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions