Closed
Description
This does not work:
st.deepEqual(
select(
'h1 + p',
u('root', [
u('text', '\n'),
h('p', 'Alpha'),
u('text', '\n'),
h('h1', 'Bravo'),
u('text', '\n'),
h('p', 'Charlie'),
u('text', '\n'),
h('p', 'Delta'),
u('text', '\n'),
h('div', [h('p', 'Echo')])
])
),
h('p', 'Charlie'),
'should return adjacent sibling (whitespace)'
)
It does work if there is no inter-element whitespace.
Affects +
, but probably also ~
and >