Bug Tracker

Opened 10 years ago

Closed 10 years ago

#5717 closed enhancement (invalid)

how to select nodes which contains only plain text?

Reported by: xieranmaya Owned by: john
Priority: major Milestone: 1.4
Component: selector Version: 1.3.2
Keywords: Cc:
Blocked by: Blocking:

Description

like the below: <ul>

<li>li1</li> <li>li2</li> <li>

<h4>a h4</h4> <ul>

<li>li3</li> <li>li4</li>

</ul>

</li>

</ul> $("li") will return 5 elements but i only want 4 elements. i want to select the li1,li2,li3 and li4,but i can't find a good way to select them if i do not assign them a className. i'm think would you add a ":header" or ":input" like pseudo class to select the nodes only contains plain text or contains nothing??

Change History (1)

comment:1 Changed 10 years ago by dmethvin

Resolution: invalid
Status: newclosed

This isn't a bug report. Please ask for help on the jQuery group:

http://groups.google.com/group/jquery-en/topics?gvc=2

Note: See TracTickets for help on using tickets.