You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When parsing an HTML document with namespace definitions, the definitions should show up as attributes. This doesn't happen with the jRuby/java version:
describe Nokogiri::HTML do
describe "xmlns" do
it "shows namespace definitions" do
doc = Nokogiri::HTML.parse(%q(<html xmlns:dc="http://purl.org/dc/elements/1.1/"></html>))
doc.root.namespace_definitions.should be_empty
doc.root.attributes.should_not be_empty
end
end
end
Using Mac OSX Lion, jRuby 1.6.4 and nokogiri 1.5.0 java
The text was updated successfully, but these errors were encountered:
I found pure Java version just takes namesspace away from HTML document and does nothing about that later. But, the fix seems not so simple. I'm thinking how to fix this issue.
When parsing an HTML document with namespace definitions, the definitions should show up as attributes. This doesn't happen with the jRuby/java version:
Using Mac OSX Lion, jRuby 1.6.4 and nokogiri 1.5.0 java
The text was updated successfully, but these errors were encountered: