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
Add .nsDecls API #271
Add .nsDecls API #271
Conversation
…espace-declarations * 'master' of https://github.com/polotek/libxmljs: travis: change node 0.11 to 0.12 travis: simplify before_install Upgrade to NAN 1.7.0 Add .namespace() to Attribute 0.13.0 update nan to 1.5.1 and fix issues with the latest v8 Added test for RELAX NG validation Added missing include for RELAX NG schema validation Added support for RELAX NG schema validation
This PR does still work. Would you mind either merging this, giving me something to change, or proposing another approach for #270? |
…espace-declarations * 'master' of https://github.com/polotek/libxmljs: 0.14.0
Is there a use case to prefer this to |
still yields two namespaces. If you're iterating through a document, keeping track of the current state of the namespace stack just to watch for changes is somewhat painful. Returning to this code, I kind of hate the string |
Maybe we can make it If you can change this to a boolean argument for |
Started a new PR at #363, with the suggested API. |
Fixes #270. New API:
decls
now includes two namespace objects. Applying to the body element yields an empty array.Tests included. I'll add docs to the wiki if you take the patch. I'm open to renaming the API anything you like.