Subject: | Inliner Version 4002 Font-Family Bug |
Date: | Tue, 15 Dec 2015 11:07:27 -0500 |
To: | bug-css-inliner [...] rt.cpan.org |
From: | Dominique Graham <dominique [...] mailermailer.com> |
When a font-family is inlined from a .css file or a <style> tag, and the font name is in double quotations (which is proper formatting for font names with spaces in them in .css files or <style> tags), it is inlined incorrectly. Instead of being in proper inlined html format (having the font name wrapped in single quotes), the font name is broken up and each word is treated as an attribute tag. Also, this makes all other stylings that are inlined for that particular tag follow that same format and makes them out of order.
For example, if this is the html with the <style> tag that needs to be inlined:
<html>
<head>
<style>
p {font-family: "Times New Roman"; padding: 5px;}
</style>
</head>
<body>
<p>random text</p>
</body>
</html>
Instead of the <p> tag having the proper formatting which is:
<p style="font-family: 'Times New Roman'; padding: 5px;">random text</p>
It will actually look like this:
<p 5px:"="5px;"" new="New" padding:="padding:" roman";="Roman";" style="font-family: " times="Times">random text</p>
-Dom