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
2010-03-09 17:29:38 -05:00
2009-02-21 03:00:34 -05:00
2010-03-08 01:56:40 -05:00
2009-05-25 21:51:08 -04:00
2006-09-30 20:18:08 +00:00
2010-03-07 18:57:22 -05:00
2010-03-30 13:33:13 -04:00
2010-04-17 00:23:09 -04:00
2010-05-04 13:41:09 -04:00
2010-02-26 21:36:51 -05:00
2009-02-21 03:00:34 -05:00
2010-05-17 23:22:51 -04:00
2008-12-20 13:06:00 -05:00
2009-02-05 18:04:10 -05:00
2009-07-06 22:04:51 -04:00
2010-03-07 21:45:39 -05:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2010-05-31 18:45:21 -07:00
2008-12-06 04:24:59 -05:00
2009-05-25 22:08:45 -04:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00
2008-12-20 13:06:00 -05:00
2010-04-26 18:31:40 -04: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
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
2010-03-10 00:58:37 -05:00
2009-05-29 17:59:30 -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
2010-03-09 17:29:38 -05:00
2009-06-07 16:05:46 -04: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-06-10 18:11:34 -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
2010-05-04 13:41:09 -04:00
2008-12-06 04:24:59 -05:00
2009-02-15 14:11:22 -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-20 13:06:00 -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
2009-05-13 16:14:57 -04:00
2008-12-06 04:24:59 -05:00
2008-12-06 04:24:59 -05:00