Skip to content

Move position from last to first of DOMParser arg or implemented "flipped" variants #5

@bbarker

Description

@bbarker

The current API has DOMParser as the last argument; this seems a bit inconvenient for what I imagine to be most uses of partial application (in fact, even if concurrency were an issue for DOMParser, afaik, JS is still single threaded afaik, so it can't be an issue - so I can't at the moment imagine ever needing more than one DOMParser).

The same applies to XMLSerializer as currently implemented in #4, but will plan to make an isolated release with #4 for those preferring the current order.

If there are conceivably other uses for the current API, now or in the future, then we go with flipped: what's a good alternative to name the flipped functions - appending Flipped to the end makes long function names that much longer, so how about just a '?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions