-
-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface
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 >
Metadata
Metadata
Assignees
Labels
🐛 type/bugThis is a problemThis is a problem👶 semver/patchThis is a backwards-compatible fixThis is a backwards-compatible fix💪 phase/solvedPost is donePost is done🗄 area/interfaceThis affects the public interfaceThis affects the public interface
Type
Projects
Milestone
Relationships
Development
Select code repository
Activity
wooorm commentedon Feb 27, 2020
To clarify, all non-element siblings are skipped:
[-]Inter-element whitespace fails[/-][+]Non-elements between adjacent and general sibling combinators should be skipped[/+]