YUI on IE8: Argument not valid on dom-style.js

后端 未结 1 1643
一向
一向 2021-01-25 20:02

I have asked this everywhere but still not getting any feedback and is getting me crazy. We are using some Alloy UI widgets on the portal im working with (Liferay 6.2) and every

相关标签:
1条回答
  • 2021-01-25 20:21

    Ok this is WAY more simple than i thought. For some reason all the modern browsers (including IE9) don't have any problems when you initialize Alloy UI with :

    YUI({ lang: 'ca-ES' }).use(
      'aui-node',
      'aui-datatable',
      'aui-pagination',
      'datatype-date',
    
    function(Y) {...
    

    But IE8 (of course) will give you a series of really weird console errors and will make your widgets work bad if you dont use AUI insted of YUI, so that was it i replaced YUI by AUI in all the parts of my code and now is working fine in IE8 too. If somebody can give a proper explanation will be really appreciated since is hard for me to understand why IE8 is not ok with using YUI to initialize Alloy UI widgets or use YUI.

    Im still doing some research on that but it seems that the reason this is happening is because im using YUI on a .JS file, still have to find a proper explanation tho.

    0 讨论(0)
提交回复
热议问题