-
Bug
-
Resolution: Fixed
-
Normal
-
6.5.8.1, 9.5.1
-
Security Level: Jimmy
-
None
Steps to Reproduce
update the style of any componennt via ajax (initially works) setting e.g. a background image:
mydiv.setStyle("width: 200px; height: 200px; background-image: url('https://example.com/image.png')");
Current Result
the resulting div only receives the url('https part of the image url
<div id="hT5Q1" style="width: 200px; height: 200px; background-image: url("https");" class="z-div">
Expected Result
the full url in for the background image
Debug Information
The jq.parseStyle() method can be tested in isolation, causing the parsing error.
The css is parsed into key value pairs splitting the string by ';' and ':'
jq.parseStyle("background-image: url('https://example.com/image.png')") --> { "background-image": "url('https" }
Workaround
call invalidate() to re-render the whole div (like initial rendering)