CachedFilesMixin does not rewrite rules for css selector with path
Using CachedFilesMixin we'll have paths like this
<img alt="True" src="/media/static/admin/img/icon-yes.0596085e212f.gif">
after template rendering, but an unmodified selector:
img[src$="admin/img/icon-yes.gif"]
in processed stylesheet.
This happens because CachedFilesMixin.patterns does not contain a rule like this """(img\[src[\^\$\*]{0,1}=\s*["']\s*(.*?)["'])"""
to match against and actually can not deal with ^=|$=|*=
operators. I am not sure how such paths can be properly processed, though.
Change History
(4)
Triage Stage: |
Unreviewed → Accepted
|
Owner: |
changed from nobody to Jason Novinger
|
Status: |
new → assigned
|
Resolution: |
→ invalid
|
Status: |
assigned → closed
|
Totally out of my expertise area, but seems valid.