Bug Tracker

Ticket #3093 (new bug)

Opened 7 months ago

Last modified 6 months ago

Attribute selector doesn't work right with style

Reported by: ajpiano Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.3 Component: core
Version: 1.2.6 Keywords: attribute selector style
Cc: Needs: Test Case

Description

One might assume that one would use $("[style]") to find all elements with an inline style attribute, which isn't exactly how it works.

[$("div").length,$("div[style]").length,$("div[class]").length,$("[style]").length];
// returned [48,48,32,959] in a random sample document.

Seems confusing.

Attachments

Change History

Changed 6 months ago by flesler

  • need changed from Review to Test Case

Can you please provide a test case ? that is, a small html file with the minimum html/css/js necessary to reproduce the problem. Also, please specify what browsers are you trying this on. Thanks

Note: See TracTickets for help on using tickets.