sabberworm / PHP-CSS-Parser

A Parser for CSS Files written in PHP. Allows extraction of CSS files into a data structure, manipulation of said structure and output as (optimized) CSS

Home Page:http://www.sabberworm.com/blog/2010/6/10/php-css-parser

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[href=https://example.org] selector is discarded

JakeQZ opened this issue · comments

This is a BC issue following #162.

Maybe the regex can be fixed, or maye a different approach is needed.

Note this is using the selector [href=https://example.org] as written. AFAIK there is no requirement for the value to be quoted.

Background and more detail at MyIntervals/emogrifier#1129.

Hi, you don't need the quotes on the HTML side but you seem to need them in CSS.

Please take a look at this pen https://codepen.io/raxbg/pen/OJZgRVz

Hi, you don't need the quotes on the HTML side but you seem to need them in CSS.

Looks like you are right (neither Chrome nor Firefox apply the CSS rule without quotes), and thus the test referred to in MyIntervals/emogrifier#1129 was invalid.