Modify ↓
Ticket #11157 (closed bug: duplicate)
Attribute filter can't deal with colons
| Reported by: | anonymous | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.1 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
Given some rss 2.0 it's quite hard to get the content:encoded property. (Tested browser: current Chromium nightly build)
broken: .find('[nodeName="content:encoded"]')
also broken:
.find('content
:encoded')
workarounds .find('encoded') mostly not applicable .filter(function(){ return this.nodeName === 'content:encoded')
I would have expected the last workaround to be identical to what the attribute filter actually does
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

nodeName is not an attribute (it's a property) so the attribute filter doesn't apply to it. Use .filter() with a function or some other method to look at the property.