tudorsaitoc / googlefontdirectory

Automatically exported from code.google.com/p/googlefontdirectory
0 stars 0 forks source link

CSS link tag generated by Google Web Fonts is sometimes invalid HTML #70

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Use Web Fonts to generate a link tag for a font family using multiple 
character subsets.
2. Insert the tag into a web page.
3. Run the web page through an HTML validator.

What is the expected output? What do you see instead?
The HTML should validate. It doesn't.

Please provide any additional information below.
This is because the HTML generated by Google Web Fonts does not escape the 
ampersand characters in the URL as "&", as should be done in valid HTML. A 
browser taking things literally would try, and fail, to make sense of the 
character entity "⊂".

Original issue reported on code.google.com by codeman38 on 3 Aug 2011 at 7:27

GoogleCodeExporter commented 8 years ago
Is this considered as an issue or not?

Original comment by Agafonov...@gmail.com on 28 Aug 2012 at 11:36

GoogleCodeExporter commented 8 years ago
that's right! - Line 32, Column 80: & did not start a character reference. (& 
probably should have been escaped as &.) 
…s.googleapis.com/css?family=PT+Sans+Narrow&subset=latin-ext" type="text/css" 
/> 

Original comment by sfxvi...@gmail.com on 2 Apr 2013 at 1:13