feat: check if ::nth-child() psuedo-class selector be omitted

This commit is contained in:
karishmas6
2024-06-05 23:28:11 +05:30
parent d5f1fcffdd
commit 531a2ba6bd

View File

@@ -395,7 +395,12 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
};
}
function dispensableNth(node: Node) {
return node.name !== 'html' && !node.name.startsWith('#');
}
};