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
When the client parser parses an HTML string where the first element has attribute(s), this causes the regex to match an improper tag name and throw an error on this line.
For the client parser, when the first element of the HTML string
has attributes, the regex will improperly capture everything and
make the tag name invalid.
The fix is to ensure only the tag name is matched and whitespace
is trimmed.
Fixes#23
Confirm that for the client parser, if the first HTML element has
attributes, it should properly match only the tag name and no
longer throw an error.
Issue #23
remarkablemark
changed the title
Error: Client-side parser breaks when root element has attributes
Error: Client parser breaks when first element has attributes
Sep 27, 2016
When the client parser parses an HTML string where the first element has attribute(s), this causes the regex to match an improper tag name and throw an error on this line.
Example:
Error thrown:
The text was updated successfully, but these errors were encountered: