Skip to main content

Bug Tracker

Side navigation

#5717 closed enhancement (invalid)

Opened December 26, 2009 12:51PM UTC

Closed December 28, 2009 02:10AM UTC

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??

Attachments (0)
Change History (1)

Changed December 28, 2009 02:10AM UTC by dmethvin comment:1

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