Skip to content

Suggestion: Return partly parsed data with the exception. #48

@ievgennaida

Description

@ievgennaida

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions