• Not adding em tag in IE

    Here is my code.

    <ul class="children">
    <li class="page_item page-item-378 page_item_has_children"><a href="http://zealousys.com.au/service/mobile/ios/">iOS</a><em>+</em>
    <ul class="children">
        <li class="page_item page-item-382"><a href="http://zealousys.com.au/service/mobile/ios/iphone/">iPhone</a></li>
        <li class="page_item page-item-384"><a href="http://zealousys.com.au/service/mobile/ios/ipad/">iPad</a></li>
    </ul>   
    

    And jQuery for him

    $this.find("li").each(function() {
        if($(this).find("ul").size() != 0) {
               $(this).find("a:first").after("<em>"+ opts.closedSign +"</em>");
            }
    }
    

    It works in all browsers, but not in IE9 ... Here is the link for a working example here

    In IE, this post, similar to Internet Explorer, restricted this form of a web page to running a script or ActiveX control.

    When I allow blocked content, it works fine.

    +4
    source share
    1 answer

    Use $(this)on the first line. A clear error in my console in Chrome, Firefox also

    +1
    source

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


    All Articles