Bug Tracker

Modify

Ticket #11157 (closed bug: duplicate)

Opened 16 months ago

Last modified 16 months ago

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

comment:1 Changed 16 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to duplicate

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.

comment:2 Changed 16 months ago by dmethvin

Duplicate of #10377.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.