Hacker News new | ask | show | jobs
by goldenkey 3892 days ago
The filters are a collection of the same type of things. Therefore its more akin to filterAttr = filterEnumVal[autumn,auburn,sunnydale,cheezit,etc..]

Instead of polluting the CSS namespace, it's much more apt to use a data-instafilter="[val]" property.

1 comments

Well goldenkey answered perfectly for me here.