{"issue":{"created_at":"2011-11-19T23:13:18Z","state":"open","updated_at":"2011-11-26T16:47:35Z","comments":1,"user":{"gravatar_id":"e072a6f287b0e5350356f585873a349f","id":208817,"url":"https://api.github.com/users/Mouvedia","login":"Mouvedia","avatar_url":"https://secure.gravatar.com/avatar/e072a6f287b0e5350356f585873a349f?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"> veosotano: is there a more elegant <ins>way</ins> to select an attribute to match against?\r\n\r\nhttp://axr.vg/spec/chapter/27\r\nrelated: #1\r\n\r\nproposition:\r\n\r\n    element:[title]contains(\"Reminder\")\r\n\r\n- Generic filter `:contains()`\r\n- Element's attribute filter `:[attr]contains()`\r\n\r\nPROS:\r\n- familiarity: it shares the [attr] notation which is used in CSS\r\n- readability: the <sup>1</sup>element's <sup>2</sup>attribute <sup>3</sup>contains <sup>4</sup>Reminder\r\n","assignee":null,"number":7,"id":2290270,"labels":[],"pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"title":"match attribute content syntax","closed_at":null,"html_url":"https://github.com/AXR/Specification/issues/7","milestone":null,"url":"https://api.github.com/repos/AXR/Specification/issues/7"},"action":"created","comment":{"created_at":"2011-11-26T16:47:35Z","updated_at":"2011-11-26T16:47:35Z","user":{"gravatar_id":"2e0629b4cd1901d23c284e8fb8791bbe","id":317239,"url":"https://api.github.com/users/matzipan","login":"matzipan","avatar_url":"https://secure.gravatar.com/avatar/2e0629b4cd1901d23c284e8fb8791bbe?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"body":"CSS uses the [attr='stuff'], so it's not really familiar. \n\nConsider \n\n:[title:contains(\"Reminder\")] \n\nOR\n\nIntroduce some new stuff, some sort of closures\n\n:([title]:contains(\"Reminder\"))\n\nThis sort of closure would be evalued from the inside out, it is like a function closure. This method can introduce some painpoints but may introduce some benefits like nesting, variable scoping and stuff like that ","id":2882481,"url":"https://api.github.com/repos/AXR/Specification/issues/comments/2882481"}}