guptahanu / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 1 forks source link

Custom Search service produce invalid HTML, inserting <link> and <style> inside <body> section #425

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
According to the HTML standards, <link> and <style> elements can be only
inside <head> section, see: http://www.w3.org/TR/html401/

Google Custom Search service produces HTML piece (for in-page search) which
supposed to be inserted in the <body> but contains <link> and <style>.
Even is case I edit this code and move <link> and <style> to the proper
place (<head>), I notice (by Firebug) that one of the generated JSAPI calls
insert yet one <link> element in the <body> on the fly, which I can't remove.

Please don't spread incorrect HTML and move all <link> and <style>
statically inside <head> and don't attempt generate <link> on the fly.

Original issue reported on code.google.com by ache...@gmail.com on 10 Apr 2010 at 2:59