Skip Menu |

This queue is for tickets about the CSS-Inliner CPAN distribution.

Report information
The Basics
Id: 115582
Status: new
Priority: 0/
Queue: CSS-Inliner

People
Owner: KAMELKEV [...] cpan.org
Requestors: EXALTUMA [...] cpan.org
Cc: chelseario [...] gmail.com
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



CC: chelseario [...] gmail.com
Subject: Inliner does not handle double quotes within CSS property values
Certain CSS values, such as font family names and background image URLs, are often wrapped in double quotes. The W3C specification actually recommends double quoting font family names that have spaces, especially if those names include reserved keywords. Double quoting URLs for background images is optional, but very common. If these double-quoted values are inlined, they may break up the style attribute in the wrong places, resulting in subsequent style properties that cannot be honored as well as generally invalid HTML. For this reason, most CSS inliners convert the double quotes within values to single quotes. I have also seen the quotes simply removed for background image or converted to """ for font family name. At present, this inliner does not handle double quoted CSS values. For the above reasons, it should be fixed to appropriately handle them. Double quoted CSS values are not uncommon, so the inliner is likely generating invalid HTML on a semi-regular basis.
Subject: background-image-test.html
This is my test sentence.
Subject: font-family-test.html
This is my test sentence.