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

Fix EmptyStackException thrown by nokogiri-java when an xlink:href attribute shows up with an empty XmlBaseStack #805

Merged
merged 1 commit into from
Mar 19, 2013

Conversation

quoideneuf
Copy link
Contributor

This is a revision of the PR posted by @bilts

#534

The test now appears to pass in both MRI 1.9.3 and jruby-head 1.9.2. The assumption is:

If a node has an xml:base or inherits one, the xlink:href will not affect the node's xml base.

If the node doesn't have an xml:base or inherit one, AND the xlink:href attribute begins with 'http://', the xlink:href will set the node's xml base.

flavorjones added a commit that referenced this pull request Mar 19, 2013
Fix EmptyStackException thrown by nokogiri-java when an xlink:href attribute shows up with an empty XmlBaseStack
@flavorjones flavorjones merged commit 095016f into sparklemotion:master Mar 19, 2013
@flavorjones
Copy link
Member

Thank you!

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.

2 participants