KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
According to the specification here: http://www.w3.org/TR/CSS21/selector.html#adjacent-selectors Adjacent sibling selectors have the following syntax: E1 + E2, where E2 is the subject of the selector. The selector matches if E1 and E2 share the same parent in the document tree and E1 immediately precedes E2, ignoring non-element nodes (such as text nodes and comments). So how can we select the non-element sibling node. For example: in the following html, how can we select the "Non-element text" text? <div><label>Some text here</label> Non-element text</div>
Tags (comma-separated)
Save Edits
Cancel