Edward Z. Yang
d3abcb90e3
Rewrite CSS url() and font-family output logic.
...
The new logic is as follows:
* Given a URL to insert into url(), check that it is properly URL
encoded (in particular, a doublequote and backslash never occurs
within it) and then place it as url("http://example.com ").
* Given a font name, if it is strictly alphanumeric, it is safe to omit
quotes. Otherwise, wrap in double quotes and replace '"' with '\22 '
(note trailing space) and '\' with '\5C ' (ditto).
We introduce expandCSSEscape() which is a hack for common parsing
idioms in CSS; this means that CSS escapes are now recognized inside
URLs as well as unquoted font names.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu >
2010-05-31 18:45:21 -07:00
..
2010-05-31 18:45:21 -07:00
2009-03-14 19:18:02 -04:00
2009-02-21 03:00:34 -05:00
2009-02-21 03:00:33 -05:00
2009-02-21 03:00:34 -05:00
2010-05-31 18:45:21 -07:00
2010-03-08 01:16:57 -05:00
2010-05-31 18:45:21 -07:00
2010-03-07 18:59:33 -05:00
2010-05-04 13:41:09 -04:00
2008-12-06 04:24:59 -05:00
2008-12-20 13:01:20 -05:00
2010-05-17 23:22:51 -04:00
2008-12-06 04:24:59 -05:00
2009-07-06 22:04:51 -04:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 02:58:30 -05:00
2009-02-21 03:00:33 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2009-05-30 00:25:14 -04:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2009-06-10 18:24:52 -04:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2009-02-21 03:00:34 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2010-04-26 18:27:32 -04:00
2008-12-06 04:24:59 -05:00
2009-02-02 18:42:23 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2010-03-07 21:45:39 -05:00
2009-02-21 03:00:34 -05:00
2008-12-06 04:24:59 -05:00