feat: increase penalty compared to base node

This commit is contained in:
karishmas6
2024-06-05 23:27:20 +05:30
parent 37a1879c93
commit d5f1fcffdd

View File

@@ -391,7 +391,7 @@ export const getSelectors = async (page: Page, coordinates: Coordinates) => {
function nthChild(node: Node, i: number): Node {
return {
name: node.name + `:nth-child(${i})`,
penalty: node.penalty + 1,
};
}