In html I have on table like this:
<table for="availableTimeRanges"></table>
then I user jquery to find the table
var table = $("table[for='availableTimeRanges']");
In firefox and chrome, this works,can return the table, but in IE8, nothing return Then i run below code in IE8, found the attribute value is empty:
$.each($("table"), function(i,n){
        alert($(n).attr("for")
});
what's the reason


foris not a custom attribute - it's an existing attribute (it is defined in the standard), but you're misusing it on the TABLE element.