The problem of choosing YUI3 in ie8

Y.one ('form fieldset: nth-child (2)'). toggleClass ('hide');

in chrome, FF, opera this line works, but in ie6-8 it throws an error 'Y.one (...)' is null or not an object.

where is the problem?

+3
source share
1 answer

You must add the "selector-css3" module to your .use () statement if you want to use the CSS3 selector in browsers that do not support them.

+4
source

Source: https://habr.com/ru/post/1764779/


All Articles