this fixes entity-based script tag filters, as reported in https://github.com/IDKwhattoputhere

This commit is contained in:
gorhill 2015-12-27 12:34:40 -05:00
parent 822faa74e3
commit a7901cd97e

View file

@ -959,7 +959,7 @@ FilterContainer.prototype.fromCompiledContent = function(text, lineBeg, skip) {
// entity selector
if ( fields[0] === 'e' ) {
// Special filter: script tags. Not a real CSS selector.
if ( fields[2].startsWith('script?') ) {
if ( fields[2].startsWith('script') ) {
this.createScriptFilter(fields[1], fields[2].slice(6));
continue;
}