OpenUI5 version: 1.38.5
Browser/version (+device/version): Chrome 51
Any other tested browsers/devices(OK/FAIL): FAIL
Steps to reproduce the problem:
<Button text="Test" visible="{= true || true }" /><Button text="Test" visible="{= true && true }" />What is the expected result?
What happens instead?
Check for 'file not found' or parse errors. Reason: Error: Invalid XMLAny other information? (attach screenshot if possible)
I faced this problem, too, and was able to solve it by escaping '&' as XML-Entity '&&'
So this should work:
<Button text="Test" visible="{= true && true }" />
Updated Plunker here: https://plnkr.co/edit/nCJm9bXTqkOo7vgHkKCf?p=preview
That's true. Not sure whether our documentation was helpful here. On https://sapui5.hana.ondemand.com/#docs/guide/daf6852a04b44d118963968a1239d2c0.html it says (somewhere) "Some characters that are used by operators, however, need to be escaped in XML, for example the left angle bracket (<) and the ampersand (&)."
Ah ok. Thank you for that hints. Didn't notice that information in the documentation in the first place. So I think this issue can be closed.
Greetings,
chumbalum
Most helpful comment
I faced this problem, too, and was able to solve it by escaping '&' as XML-Entity '&&'
So this should work:
<Button text="Test" visible="{= true && true }" />Updated Plunker here: https://plnkr.co/edit/nCJm9bXTqkOo7vgHkKCf?p=preview