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

xhtml script setSrc() doesn't convert to a valid URL to a browser

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 8.5.0
    • 8.0.5
    • None
    • Security Level: Jimmy
    • None
    • None

      Steps to Reproduce

      1. load the attached zul
      2. click the button

      Current Result

      invalid or unexpected token

      Expected Result

      Debug Info

      au response:
      {"rs":[["setAttr",[{$u:'myscript'},"dynamicProperty",["src",org.zkoss.zhtml.impl.AbstractTag$EncodedURL@173b026e]]]],"rid":1}

      Root Cause

      else if ("src".equals(name)) {
      			// ZK-3011: should defer until render
      			EncodedURL url = new EncodedURL(sval);
      			setDynaProp(name, url);
      			smartUpdate("dynamicProperty", new Object[] { name, url }, true);
      			return;
      

      Workaround

            DevChu DevChu
            hawk hawk
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 30 minutes
                30m