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

replace xmlshim with xmldom #190

Merged
merged 1 commit into from
Aug 31, 2015

Conversation

Rayman
Copy link
Contributor

@Rayman Rayman commented Aug 28, 2015

xmldom is a full JavaScript implementation of DOMParser with the same functionality. It is a lot more used and so I think it is more reliable (217.411 downloads in the last week vs 88).

As a result this project will no longer depend on libxmljs which makes it easier to install on platforms such as windows. All tests on both node and browser still run.

As a side effect I had to reintroduce shim/xmldom.js to keep the build size small. I also replaced the xpath evaluate call with documentElement because we no longer have that. Could that become a problem?

xmldom is a full JavaScript implementation of DOMParser with the same
functionality. It is a lot more used and so I think it is more reliable.

As a result this project will no longer depend on libxmljs which makes it easier to install on platforms such as windows.
rctoris added a commit that referenced this pull request Aug 31, 2015
@rctoris rctoris merged commit 4859277 into RobotWebTools:develop Aug 31, 2015
@@ -114,7 +114,7 @@ describe('URDF', function() {
it('is ignorant to the xml node', function(){
var parser = new DOMParser();
var xml = parser.parseFromString(sample_urdf(), 'text/xml');
var robotXml = xml.evaluate('//robot', xml, null, XPATH_FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
var robotXml = xml.documentElement;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!!! Great stuff @Rayman

@Rayman Rayman deleted the replace-xmlshim-with-xmldom branch September 7, 2015 09:57
k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
…Tools#190)

* add another event handler for intersection without highliting
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.

3 participants