{"issue":{"created_at":"2011-11-19T23:13:18Z","state":"open","updated_at":"2011-11-27T15:10:29Z","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"},"comments":15,"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\nproposal:\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\nmultiple attributes proposal:\r\n\r\n    element[title]:contains(\"Reminder\")[href]:contains(\"axr.vg\")\r\nor\r\n\r\n    element[title][href]:contains(\"Reminder\"; \"axr.vg\")\r\nPROS:\r\n- familiarity: it shares the [] notation which is used for attributes 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\r\n<hr>\r\n<del>\r\nprevious proposal:\r\nelement:[title]contains(\"Reminder\")\r\n</del>","assignee":null,"id":2290270,"labels":[{"color":"DDDDDD","name":"under discussion","url":"https://api.github.com/repos/AXR/Specification/labels/under+discussion"}],"number":7,"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-27T15:10:29Z","updated_at":"2011-11-27T15:10:29Z","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":"veosotano, this is why we should talk and find a solution. I simply think\nthe current solution is semantically wrong. I was proposing towards\ndiscussion some variants, which, of course, need to be refined.\n\nIndeed, there is a significant difference between those two, but that's not\nmy point.\n\nFuncod, your method is even more confusing.\n\nYours,\n   Andrei\n\n\n\nOn 27 November 2011 17:03, veosotano <\nreply@reply.github.com\n> wrote:\n\n> The ```[ ]``` notation will be used for accessing and manipulating\n> properties which contain multiple values, so using them in a selector chain\n> would lead to severe problems to tell selectors and properties apart...\n> And, man, your proposals are getting more and more complicated, not simpler\n> :S\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/AXR/Specification/issues/7#issuecomment-2888021\n>","id":2888050,"url":"https://api.github.com/repos/AXR/Specification/issues/comments/2888050"}}