acornjs / acorn-jsx

Alternative, faster React.js JSX parser
MIT License
646 stars 72 forks source link

readXJSEntity and invalid entities #10

Closed sebmck closed 9 years ago

sebmck commented 9 years ago
<a b={" "} c=" " d="&amp;" e="id=1&group=2" f="&#123456789" g="&#123*;" h="&#x;" />

Current code fails due to the closing " before removed from group=2" as readXJSEntity() will return undefined when trying to find a HTML entity from &group=2....