{"id":207032,"date":"2015-08-26T07:52:12","date_gmt":"2015-08-26T14:52:12","guid":{"rendered":"http:\/\/css-tricks.com\/?p=207032"},"modified":"2015-08-26T07:52:12","modified_gmt":"2015-08-26T14:52:12","slug":"probably-doesnt-do-what-you-think-it-does","status":"publish","type":"post","link":"https:\/\/css-tricks.com\/probably-doesnt-do-what-you-think-it-does\/","title":{"rendered":"“probably doesn’t do what you think it does”"},"content":{"rendered":"

An interesting post about the odd behaviour of querySelectorAll<\/code> where it’ll match elements that you might not expect at first glance:<\/p>\n

I think this API is surprising, and the front end engineers I’ve asked seem to agree with me. This is, however, not a bug; it’s definitely how the spec claims it should work, and how it works in Firefox, Chrome and Safari.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"

An interesting post about the odd behaviour of querySelectorAll where it’ll match elements that you might not expect at first glance: I think this API is surprising, and the front end engineers I’ve asked seem to agree with me. This is, however, not a bug; it’s definitely how the spec claims it should work, and […]<\/p>\n","protected":false},"author":223806,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":[]},"categories":[17],"tags":[],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"","jetpack-related-posts":[],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/207032"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/223806"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=207032"}],"version-history":[{"count":3,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/207032\/revisions"}],"predecessor-version":[{"id":207140,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/207032\/revisions\/207140"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=207032"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=207032"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=207032"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}