Hi Mars

As of 0.7.0, I'm experiencing a problem with XPath attribute
selectors.

When:
  my_node contains <highlight from="3" to="9" type="queryTerm"/>

The attribute selector no longer works:
  my_node.find_first('@from') => nil

It worked in 0.5.4 & 0.6.0.

Any idea what's up with that?

Yes - that's my mistake. When trying to hunt down a memory error, I commented out the returning of attributes. Unfortunately, there aren't any tests for that, so I totally forgot to comment it back in.

Fix and test applied to SVN. I suppose that warrants a 0.7.1 bug fix release fairly soonish...

Charlie

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

_______________________________________________
libxml-devel mailing list
libxml-devel@rubyforge.org
http://rubyforge.org/mailman/listinfo/libxml-devel

Reply via email to