Bug Tracker

Opened 5 years ago

Closed 5 years ago

#15211 closed bug (migrated)

contains a 'value' attribute selector not working in IE8

Reported by: alexey_kay Owned by:
Priority: undecided Milestone: None
Component: selector Version: 1.11.1
Keywords: Cc:
Blocked by: Blocking:

Description

In firefox, chrom, ie9+ works as expectd, logs values hello and hello again. In ie8 (emulator and the real one) logs for non existing values as well - had to add a fix to check if value is nothing

<html>
<head>
    <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            $("input[type=hidden][id$='HF'][value]").each(function (index) {
                console.log($(this).val())
            });
        });
    </script>
</head>
<body>
    <input type="hidden" id="1HF" />
    <input type="hidden" id="2HF" />
    <input type="hidden" id="3HF" value="hello" />
    <input type="hidden" id="4HF" value="hello again" />
</body>
</html>

Change History (1)

comment:1 Changed 5 years ago by m_gol

Resolution: migrated
Status: newclosed
Note: See TracTickets for help on using tickets.