Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1108

Bug in CSSOneOfAttributeCondition prevents correct matching of some elements

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.7, 1.8, 1.13
    • None
    • CSS
    • None

    Description

      There is bug in CSSOneOfAttributeCondition that prevents correct matching of some elements.
      For instance, for a selector like "E[a~='B']", elements like <E a="ABC B"/> or <E a="B ABC"/> should both match.
      But only the second will actually match with the current code.
      For the first case, the "B" in "ABC" will first be considered, but since it's not a full-word match, it is (correctly) rejected, but matching stops there instead of going-on with the next occurrence of "B" (which is the one that matches).

      Attachments

        1. batik-css-patch.diff
          1 kB
          Alain Le Guennec

        Activity

          People

            Unassigned Unassigned
            aleguenn Alain Le Guennec
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: