>> html = "<div id=\"abc\"></div>"
=> "<div id=\"abc\"></div>"
>> Nokogiri::HTML.fragment(html).at_xpath(".//div")
=> #<Nokogiri::XML::Element:0x2b1a5015da5c name="div" attributes=[#<Nokogiri::XML::Attr:0x2b1a5016e5b4 name="id" value="abc">]>
>> Nokogiri::HTML.fragment(html).at_xpath(".//div[@id=\"abc\"]")
=> nil
>> Nokogiri::HTML.fragment(html).at_xpath(".//div[@id]")
=> nil
frag.at_xpath("./div[@id = 'abc']")frag.at_xpath("div[@id = 'abc']")
--
You received this message because you are subscribed to the Google Groups "nokogiri-talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nokogiri-tal...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nokogiri-talk/879ab061-6396-412f-ab1f-7b6bfa26804ao%40googlegroups.com.