#12531 closed bug (duplicate)
elem[attr] selector
Reported by: | Owned by: | Rick Waldron | |
---|---|---|---|
Priority: | high | Milestone: | None |
Component: | core | Version: | 1.7.1 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi.
jQuery JavaScript Library v1.7.1
I have element
<tr target="contacts" key="<[email protected]…>">
And i have query
a = $("tr[key='<[email protected]…>']")
Now a - is array with one text node, nodeValue is "<[email protected]…>"
But, i expect array with TR node
Bug?
--- Dmitry Minkin
Change History (9)
comment:1 Changed 10 years ago by
Component: | unfiled → core |
---|---|
Milestone: | None → 1.9 |
Priority: | undecided → high |
comment:2 Changed 10 years ago by
Status: | new → open |
---|
comment:4 Changed 10 years ago by
Owner: | set to Rick Waldron |
---|---|
Status: | open → assigned |
comment:5 Changed 10 years ago by
I've got a much smaller patch for this, but there is still an outstanding issue to address. Unfortunately I have to leave and drive 4 hours to Boston so I'll update when it's complete.
comment:8 Changed 10 years ago by
Resolution: | → duplicate |
---|---|
Status: | assigned → closed |
comment:9 Changed 10 years ago by
Milestone: | 1.9 → None |
---|
Note: See
TracTickets for help on using
tickets.
This is running afoul of the "looks like HTML" rule, which sees the
<>
in the string and processes it like$(html)
instead of$(selector)
. As of jQuery 1.9 we'll require any string processed by$(html)
to *start* with a<
character, otherwise it will be treated as a selector. For cases where you want leading text nodes there is already$.parseHTML()
which needs documentation still.