Summary
~~~~~~~
It would be handy to be able to do something like the following to direct xowiki to add the script to the document head wrapped in a conditional comment:
~~~~~~~
It would be handy to be able to do something like the following to direct xowiki to add the script to the document head wrapped in a conditional comment:
[[js:IE9.js|-if lt_IE9]]
What do you think?
Explanation
~~~~~~~~~~~
I have found myself in a situation where I cannot avoid adding some extra code specifically to cope with IE6 and IE7 W3C non-compliance.
<!--[if lt IE 8]> <script src="/xowiki/file/IE9.js"></script> <![endif]-->
I can hack the openacs template to do this (yuk), or set openacs to allow script tags in form input (double yuk!) but I think it would be an enhancement if xowiki supported conditional comments in a js include.
At the moment putting:
<!--[if lt IE 8]> [[js:IE9.js]] <![endif]-->
into the xowiki::Form content field, as you would expect, results in the script being included in the document head and the conditional comment appearing empty in the page body.
Regards
Richard
Request notifications