Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle documents that do not contain SVG root elements #65

Merged
merged 20 commits into from
May 3, 2017

Conversation

jamesmartin
Copy link
Owner

Addresses #60.

This branch adds a helper method to the base transformation class that parses the given document, extracts the SVG element, if one exists at the root, and yields it to the block before returning the parsed document.

All transformation subclasses have been updated to use this new helper method and effectively eliminate the need to do their own document parsing/malformed document handling. This design removes a lot of duplicate parsing code and provides a consistent, robust interface for handling documents inside the transformation pipeline.

@jamesmartin jamesmartin added this to the v1.2.2 milestone May 3, 2017
@jamesmartin jamesmartin merged commit eee2360 into master May 3, 2017
@jamesmartin jamesmartin deleted the handle-malformed-docs branch May 3, 2017 08:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant