Skip to content

Commit fdfd5d4

Browse files
committed
[css2] The letters u, r and l if the url() notation may be escaped. See
http://lists.w3.org/Archives/Public/www-style/2013Jan/0616.html --HG-- extra : convert_revision : svn%3A73dc7c4b-06e6-40f3-b4f7-9ed1dbc14bfc/trunk%403269
1 parent cfd4084 commit fdfd5d4

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

css2/grammar.src

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
22
<html lang="en">
3-
<!-- $Id: grammar.src,v 2.72 2011-10-18 19:25:27 bbos Exp $ -->
3+
<!-- $Id: grammar.src,v 2.73 2013-05-02 11:57:56 bbos Exp $ -->
44
<HEAD>
55
<TITLE>Grammar of CSS&nbsp;2.1</TITLE>
66
<!--script src="http://www.w3c-test.org/css/harness/annotate.js#CSS21_DEV" type="text/javascript" defer></script-->
@@ -160,9 +160,9 @@ badstring1 \"([^\n\r\f\\"]|\\{nl}|{escape})*\\?
160160
badstring2 \'([^\n\r\f\\']|\\{nl}|{escape})*\\?
161161
badcomment1 \/\*[^*]*\*+([^/*][^*]*\*+)*
162162
badcomment2 \/\*[^*]*(\*+[^/*][^*]*)*
163-
baduri1 url\({w}([!#$%&amp;*-\[\]-~]|{nonascii}|{escape})*{w}
164-
baduri2 url\({w}{string}{w}
165-
baduri3 url\({w}{badstring}
163+
baduri1 {U}{R}{L}\({w}([!#$%&amp;*-\[\]-~]|{nonascii}|{escape})*{w}
164+
baduri2 {U}{R}{L}\({w}{string}{w}
165+
baduri3 {U}{R}{L}\({w}{badstring}
166166
comment \/\*[^*]*\*+([^/*][^*]*\*+)*\/
167167
ident -?{nmstart}{nmchar}*
168168
name {nmchar}+
@@ -242,8 +242,8 @@ Z z|\\0{0,4}(5a|7a)(\r\n|[ \t\r\n\f])?|\\z
242242
{num}% {return PERCENTAGE;}
243243
{num} {return NUMBER;}
244244

245-
"url("{w}{string}{w}")" {return URI;}
246-
"url("{w}{url}{w}")" {return URI;}
245+
{U}{R}{L}"("{w}{string}{w}")" {return URI;}
246+
{U}{R}{L}"("{w}{url}{w}")" {return URI;}
247247
{baduri} {return BAD_URI;}
248248

249249
{ident}"(" {return FUNCTION;}

0 commit comments

Comments
 (0)