Hi.
My .css file contanis a cssRule with an attribute called link, like
link: http://www.xyz.com;, when i tried to use cssparser, it just reads in link:http & stops over there, if i put this link under single quote like
link: http:'//www.xyz.com';, then the parser can parse even the //www.xyz.com;, otherwise not. Please could anyone help me to solve this problem, without me changing the structre of each & every css files inorder to parse the link.
thanks
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi.
My .css file contanis a cssRule with an attribute called link, like
link: http://www.xyz.com;, when i tried to use cssparser, it just reads in link:http & stops over there, if i put this link under single quote like
link: http:'//www.xyz.com';, then the parser can parse even the //www.xyz.com;, otherwise not. Please could anyone help me to solve this problem, without me changing the structre of each & every css files inorder to parse the link.
thanks
Is there anyway to get an error, if cssparser is not able to parse any attribute(s). thanks
Please see http://www.w3.org/TR/CSS1#url
You need to quote the URL with url(). That is,
link: url(http://www.xyz.com);