Skip to content

Commit

Permalink
support [is=name] syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
sorvell committed Jun 6, 2013
1 parent 5dacd25 commit 4b64c87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/shimStyling.js
Expand Up @@ -366,7 +366,10 @@ var stylizer = {
parts.forEach(function(p) {
r.push(name + ' ' + p.trim());
});
return r.join(', ');
var selector = r.join(', ');
// support [is=name] syntax as well as tag name
selector = selector + ', ' + selector.replace(name, '[is=' + name + ']');
return selector;
},
scopeSelectorStrict: function(selector, name) {
var r = [], parts = selector.split(','), t;
Expand Down

0 comments on commit 4b64c87

Please sign in to comment.