Opened 8 years ago
Closed 8 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>
Note: See
TracTickets for help on using
tickets.
Migrated to https://github.com/jquery/jquery/issues/1789