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
@byteit101 Thanks for opening this issue. Likely I'll wait until v1.12 to address this, but we always try to have the same exceptions raised in both implementations.
Side note: You may also want to use Node#at_css here which is the same as css&.first, if you're going to throw away results. At some point in the future we may optimize this call to be more efficient in the underlying XPath query.
Actual Behavior
I'm aware the correct syntax is
Nokogiri::HTML.parse("<p>").css("p").first["class"]
. This bug report is about an error in the error :-)Expected behavior
If there is an exception, it is a Ruby Exception, not a Java Exception, as shown on MRI:
Environment
The text was updated successfully, but these errors were encountered: