You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
leta=<\u0061></a>;// worksletab=<\u0061-b></a-b>;// worksletac=<a-\u0063></a-c>;// reports mismatching closing tag
Expected behavior:
Consistent parsing of escaped characters in JSX Identifiers.
I don't know the JSX spec, so I cannot tell whether all should be valid or all should be invalid
Actual behavior:
parseJsxIdentifier is only responsible for everything after the first dash. It wasn't changed to support unicode characters. Therefore the regular Identifier parsing allows escaped characters in the first part.
JSXIdentifier is still defined in terms of the core IdentifierStart/IdentifierPart, which include Unicode escape sequences, so I suppose they should all work - Babel's wrong here, I suppose.
TypeScript Version: 3.6.0-dev.20190804
Search Terms:
Code
Expected behavior:
Consistent parsing of escaped characters in JSX Identifiers.
I don't know the JSX spec, so I cannot tell whether all should be valid or all should be invalid
Actual behavior:
parseJsxIdentifier
is only responsible for everything after the first dash. It wasn't changed to support unicode characters. Therefore the regular Identifier parsing allows escaped characters in the first part.Related Issues:
#32096 forgot to change
parseJsxIdentifier
. cc @weswighamThe text was updated successfully, but these errors were encountered: