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
It loses track of the namespace after a while. I'm not sure if this is the best way to do this or not, but I'm sure it shouldn't be giving different things.
The text was updated successfully, but these errors were encountered:
So Nokogiri on MRI makes the assumption that if no namespace prefix is specified and there isn't a default namespace specified, then adopt the prefix of the root. Nokogiri on JRuby doesn't make that assumption.
Having a read of http://www.w3.org/TR/xml-names/#defaulting, I would lean toward the JRuby behaviour, since my understanding from the spec is that it's possible to have an element with no namespace name.
Running this code against Nokogiri 1.5.5 (C and Java):
Results in this output for CRuby, as I would expect:
However, in JRuby, the output is:
It loses track of the namespace after a while. I'm not sure if this is the best way to do this or not, but I'm sure it shouldn't be giving different things.
The text was updated successfully, but these errors were encountered: