internet explorer - Error in jquery attribute selector and IE6-7 -


I am trying to implement a JQuery script to process some areas within an image map. I'm using $ ('area = size =' shift ']' 'as the selector to receive those areas. It is working fine in IE8 and Firefox, but it is working in IE6 or IE7 Not selection of elements.
This is a test page that shows this problem. If it is a JQuery bug or I am doing something wrong I do not know that

  . & Lt ;! DOCTYPE html public "- // W3C // DTD XHTML 1.0 Transitional // N" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitio Nal.dtd ">  gt; top & gt; & gt; meta http-equiv =" content-type "content =" text / html; charset = UTF-8 "/ & gt; & Lt; script src = "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js" type = "text / javascript" & gt; & lt; / scripts & gt; ; & Lt; script type = "text / javascript" & gt;! // & LT; [CDATA [$ (document) .ready (function () {var fields = $ ( 'field [size = "shift"] " ); Alert ('regions:' + areas.length);}); //]] gt; & lt; / script & gt; & Lt; Title & gt; Test & lt; / Title & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Img id = "img1" src = "nothing.gif" style = "width: 300px; height: 300px; border: 2px solid black" usemap = "# map1" /> & Lt; Map ID = "map 1" & gt; & Lt; Area size = "rectangle" title = "rectairea" courses = "126,112,231,217" alt = "" /> & Lt; Field size = "shift" title = "polyArea1" coords = "274,72,262,70,251,68,240,67,228,66,217,67,206,68,194,70,183,72,181,63,192,60,204,58,216,57,228,56,240,57,252,58,264, 60,276, 63 "alt =" "/> & Lt; Field size = "shift" title = "polyArea2" coords = "241.194.235.193.228.193.222.193.216.194.196.119.204.117.212.116.220.115.228.115.237.115.245.116.253.117.261.119" alt = "" /> & Lt; / Map & gt; & Lt; / Body & gt; & Lt; / Html & gt;  

This is showing up in IE8 and Firefox 2 and IE 6-7 - Thank you, Guillermo

it seems that if you uppercase the price:

  var fields = $ ( 'field [size = "Paul"] ") is;  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -