mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-11 17:41:03 +01:00
Fix unescaped attr value in generated CSS selector
Related feedback: - https://github.com/NanoAdblocker/NanoCore2/commit/5e625da8fe45#commitcomment-36625096
This commit is contained in:
parent
b7285973c5
commit
e9abce61a0
1 changed files with 1 additions and 1 deletions
|
@ -952,7 +952,7 @@ vAPI.domCollapser = (function() {
|
|||
if ( netSelectorCacheCount <= netSelectorCacheCountMax ) {
|
||||
const value = target.getAttribute(prop);
|
||||
if ( value ) {
|
||||
selectors.push(tag + '[' + prop + '="' + value + '"]');
|
||||
selectors.push(`${tag}[${prop}="${CSS.escape(value)}"]`);
|
||||
netSelectorCacheCount += 1;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue