Uploaded image for project: 'ZK'
  1. ZK
  2. ZK-1829

Selector org.zkoss.zk.ui.select.impl.Tokenizer implementation problem

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.1
    • Component/s: None
    • Labels:
      None

      Description

      in (Tokenizer.java:52)
      The usage of addMinorTransition will cause tokenizer wrongly tokenize the given input which contains '[' and ']' in attribute value.

      For example, selector=.testSimple[message*='ndc[1]'] is a no go.

      it's better to use: .addTransition(CharClass.OPEN_BRACKET, State.IN_ATTRIBUTE); in (Tokenizer.java:39)
      .addTransition(CharClass.CLOSE_BRACKET, State.IN_ATTRIBUTE);; in (Tokenizer.java:52)

      and provides OPEN_BRACKET, CLOSE_BRACKET in CharClass.

      then do proper identification in protected CharClass getClass(Character c) implementation.

        Attachments

          Activity

            People

            Assignee:
            RaymondChao RaymondChao
            Reporter:
            iantsai iantsai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: