Closed deed02392 closed 5 years ago
Shouldn't the selector be :last-child
?
As @kyleoliveiro mentions the correct selectors are :first-child
, :last-child
, :nth-child
Try this:
x(markup, {
raw_table: 'table.schedule@html',
sched_type: ['tr@class'],
date: ['td.date'],
descr: ['tr td:nth-last-child(1)'] // This line
})
Subject of the issue
When attempting to use the pseudo-selectors to get the n'th child items of nodes, I get the error:
[SyntaxError: unmatched pseudo-class :last]
Your environment
Steps to reproduce
Expected behaviour
descr
should be a collection of the innerText of all the last columns of all the rows parsed from 'markup'Actual behaviour
Syntax error. Exit.