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
The browser will render broken path data until the first error has occurred.
For example, for the path data string 'M 10,10 L 20,20,30', there is an odd number of parameters for the "L" command, which requires an even number of parameters. The user agent is required to draw the line from (10,10) to (20,20) and then perform error reporting since 'L 20 20' is the last correctly defined segment of the path data specification.
I would assume that lib should also have the possibility to return at least a valid part of the path data.
Is it possible to extend the exception with the partly parsed data?
The text was updated successfully, but these errors were encountered:
ievgennaida
changed the title
Improvment. Return partly parsed data.
Suggestion: Return partly parsed data with the exception.
Apr 8, 2020
According to the:
https://www.w3.org/TR/svg-paths/
The browser will render broken path data until the first error has occurred.
For example, for the path data string 'M 10,10 L 20,20,30', there is an odd number of parameters for the "L" command, which requires an even number of parameters. The user agent is required to draw the line from (10,10) to (20,20) and then perform error reporting since 'L 20 20' is the last correctly defined segment of the path data specification.
I would assume that lib should also have the possibility to return at least a valid part of the path data.
Is it possible to extend the exception with the partly parsed data?
The text was updated successfully, but these errors were encountered: