Skip to content
  • Kasimier T. Buchcik's avatar
    Fixed bug #322928, reported by Erich Schubert: The bug was in pattern.c, · 97258713
    Kasimier T. Buchcik authored
    * pattern.c xpath.c include/libxml/pattern.h:
      Fixed bug #322928, reported by Erich Schubert: The bug was
      in pattern.c, which is used for a tiny subset of xpath
      expression which can be evaluated in an optimized way.
      The doc-node was never considered when evaluating "//"
      expressions. Additionally, we fixed resolution
      to nodes of any type in pattern.c; i.e. a "//." didn't work
      yet, as it did select only element-nodes. Due to this
      issue the pushing of nodes in xpath.c needed to be adjusted
      as well.
    97258713