{"id":1554,"date":"2011-02-10T10:12:12","date_gmt":"2011-02-10T16:12:12","guid":{"rendered":"http:\/\/bililite.nfshost.com\/blog\/?p=1554"},"modified":"2011-02-10T10:12:12","modified_gmt":"2011-02-10T16:12:12","slug":"jquery-1-5","status":"publish","type":"post","link":"https:\/\/bililite.com\/blog\/2011\/02\/10\/jquery-1-5\/","title":{"rendered":"jQuery 1.5"},"content":{"rendered":"Well, <a href=\"http:\/\/blog.jquery.com\/2011\/02\/07\/jqcommunity-updates-feb2011\/#jqreleased\">jQuery 1.5 is out<\/a> and there's yet another incompatibility: they changed the way <a href=\"http:\/\/api.jquery.com\/attribute-equals-selector\/\">attribute selectors<\/a> work. You used to be able to use them without quotes, as <code>[attr=value]<\/code> but that now throws an exception. Now you have to use <code>[attr=\"value\"]<\/code>. Not sure why they changed it; The <a href=\"http:\/\/www.w3.org\/TR\/css3-selectors\/#attribute-representation\">CSS level 3 definition<\/a> is ambiguous about when you need quotes, and it may be that jQuery is OK with leaving the quotes off for simple (letters\/numbers) values. I don't have time to experiment; I just changed things to use the quotes. It affects <a href=\"\/blog\/2009\/01\/16\/jquery-css-parser\/\"><code>parsecss<\/code><\/a> and <a href=\"\/blog\/2009\/04\/03\/new-jquery-widget-flexcal\/\"><code>flexcal<\/code><\/a>; I haven't found any other places I used this.","protected":false},"excerpt":{"rendered":"Well, jQuery 1.5 is out and there's yet another incompatibility: they changed the way attribute selectors work. You used to be able to use them without quotes, as [attr=value] but that now throws an exception. Now you have to use [attr=\"value\"]. Not sure why they changed it; The CSS level 3 definition is ambiguous about [&hellip;]","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[10,5],"tags":[],"_links":{"self":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/1554"}],"collection":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/comments?post=1554"}],"version-history":[{"count":2,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/1554\/revisions"}],"predecessor-version":[{"id":1583,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/posts\/1554\/revisions\/1583"}],"wp:attachment":[{"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/media?parent=1554"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/categories?post=1554"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/bililite.com\/blog\/wp-json\/wp\/v2\/tags?post=1554"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}