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

Please expose TreeBuilder for ease of writing custom parsers #20

Open
garthk opened this issue Feb 24, 2014 · 0 comments
Open

Please expose TreeBuilder for ease of writing custom parsers #20

garthk opened this issue Feb 24, 2014 · 0 comments

Comments

@garthk
Copy link

garthk commented Feb 24, 2014

You don't expose the TreeBuilder to the supplied parser:

ElementTree.prototype.parse = function(source, parser) {
  if (!parser) {
    parser = get_parser(constants.DEFAULT_PARSER);
    parser = new parser.XMLParser(new TreeBuilder());
  }
  parser.feed(source);

Strikes me that makes it harder to get any work done.

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

No branches or pull requests

1 participant