Skip to content

Commit ed3472b

Browse files
[core] Comment on CSS.escape for the future
1 parent 70090bf commit ed3472b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

packages/x-data-grid/src/utils/domUtils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ export function findParentElementFromClassName(elem: Element, className: string)
1010
return elem.closest(`.${className}`);
1111
}
1212

13+
// TODO, eventually replaces this function with CSS.escape, once available in jsdom, either added manually or built in
14+
// https://github.com/jsdom/jsdom/issues/1550#issuecomment-236734471
1315
export function escapeOperandAttributeSelector(operand: string): string {
1416
return operand.replace(/["\\]/g, '\\$&');
1517
}

0 commit comments

Comments
 (0)