Bug 77681 - Non-matching substring attribute selectors match when generating contents
Summary: Non-matching substring attribute selectors match when generating contents
Status: RESOLVED DUPLICATE of bug 71621
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac (Intel) OS X 10.6
: P2 Normal
Assignee: Nobody
URL: http://jsbin.com/uvesad/14
Keywords:
Depends on:
Blocks:
 
Reported: 2012-02-02 13:42 PST by Jens O. Meiert
Modified: 2022-07-12 16:35 PDT (History)
6 users (show)

See Also:


Attachments
Screenshot of jsbin.com test case (63.79 KB, image/png)
2012-02-02 13:42 PST, Jens O. Meiert
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jens O. Meiert 2012-02-02 13:42:11 PST
Created attachment 125180 [details]
Screenshot of jsbin.com test case

Issue observed in Chrome 16.0.912.77 on Mac OS 10.6.8. Not reproducible in earlier WebKit builds (e.g. Safari 5.1.2).

Selectors like “[href$='foo/']:before” in conjunction with “content” declaration generate contents for all elements carrying @href, not just the ones actually matching the selector.

Example: http://jsbin.com/uvesad/14
Source: http://jsbin.com/uvesad/14/edit
Preview: <Screen shot 2012-02-02 at 1.38.04 PM.png>


(FYI: was forced to set a “Version”. Not sure 528+ is accurate.)
Comment 1 Dimitri Glazkov (Google) 2012-02-02 13:43:48 PST
looks like a recent regression?
Comment 2 Philippe Wittenbergh 2012-02-02 21:30:54 PST
Looks like a duplicate of bug 71621
Comment 3 Brent Fulgham 2022-07-12 16:35:52 PDT
Duping to bug with an active test case.

*** This bug has been marked as a duplicate of bug 71621 ***