aym / google-ajax-apis

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

"Unmatched </link> encountered" error in WebKit/Safari 3.1 OSX #28

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
hi,

#What steps will reproduce the problem?
1. Open Safari/WebKit browser on OSX (platform I've used) 
2. open example Ajax Feed api page: 
http://code.google.com/apis/ajaxfeeds/documentation/helloworld.html
3. Open Error console (Inspector tool is available in Safari/Webkit)
[optional]4. hit refresh to reload page if inspector did not read page load 
history correctly

#What is the expected output? What do you see instead?
Error console should show no errors. However it shows:

"[The HTML that caused this error was generated by a script.] Unmatched </link> 
encountered.  
Ignoring tag."
1 error

I guess that is caused by ajax api loading script dynamic injection at some 
point, however that's 
hard to debug it myself because code is minified

What version of the product are you using? On what operating system?
Current ajax script loader and ajax feed api:
Tested with WebKit nightly build and public Safari 3.1 on OSX Leopard:
user-agent:
Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_2; en-us) AppleWebKit/525.18 
(KHTML, like 
Gecko) Version/3.1.1 Safari/525.18

#Please provide any additional information below.
This error is trapped by browser and script engine continues. However script 
injection should be 
clean

regards,
Peter

Original issue reported on code.google.com by peter.bl...@gmail.com on 8 May 2008 at 11:23

GoogleCodeExporter commented 8 years ago

Original comment by jrgeer...@gmail.com on 4 Jun 2008 at 1:00

GoogleCodeExporter commented 8 years ago

Original comment by lisba...@google.com on 6 Jan 2009 at 10:25

GoogleCodeExporter commented 8 years ago
is the fix pushed to prod? I am still getting that error

Original comment by slt...@gmail.com on 29 May 2009 at 4:36

GoogleCodeExporter commented 8 years ago
Same here. Any updates on this?

Original comment by kaipra...@gmail.com on 27 Jul 2009 at 4:11

GoogleCodeExporter commented 8 years ago
Hi guys,

@kaipradel
yes, see status-> *fixed*
I cannot recreate issue using current Safari/FireFox versions,

Peter

Original comment by peter.bl...@gmail.com on 27 Jul 2009 at 7:58

GoogleCodeExporter commented 8 years ago
I also have having this problem.  See http://benjamincollins.com to reproduce 
using 
Chrome.

Original comment by aggie...@gmail.com on 9 Aug 2009 at 11:41

GoogleCodeExporter commented 8 years ago
I still get this error (Safari 4.04):
1. Add these to the head
<script src="http://www.google.com/jsapi" type="text/javascript"></script>
<script type="text/javascript">//<![CDATA[
    google.load('search', '1');
//]]></script>
<!--[if lt IE 7]>
    <link rel="stylesheet" type="text/css" href="/"/>
<![endif]-->
2. View in Safari
3. Open the Inspector
4. >> Error: [The HTML that caused this error was generated by a script.] 
Unmatched </link> encountered.  
Ignoring tag.

Original comment by joebilli...@gmail.com on 1 Dec 2009 at 12:39

GoogleCodeExporter commented 8 years ago
I fixed the problem by setting nocss to true

Original comment by joebilli...@gmail.com on 1 Dec 2009 at 4:52

GoogleCodeExporter commented 8 years ago
How do we set nocss to true and where???

Original comment by er.sudhi...@gmail.com on 26 Dec 2009 at 7:10

GoogleCodeExporter commented 8 years ago
@er.sudhir.yadav For example, google.load('search','1',{nocss:1});

Original comment by jrgeer...@gmail.com on 26 Dec 2009 at 12:02

GoogleCodeExporter commented 8 years ago
This error still happens both in Safari and Chrome when loading the Google AJAX 
Search 
API. To reproduce, run the "Hello World" example at 
http://code.google.com/apis/ajaxsearch/documentation.

Original comment by kevin.go...@gmail.com on 31 Dec 2009 at 3:59

GoogleCodeExporter commented 8 years ago
im geting the same error. when is google gonna get some tools to fix ppl sites, 
so they 
work.

Original comment by eyes.don...@gmail.com on 26 Feb 2010 at 1:51

GoogleCodeExporter commented 8 years ago
Error still happens. Can be seen in Code Playground samples, e.g.: 
http://code.google.com/apis/ajax/playground/#search_result_placement

Original comment by rslinf...@gmail.com on 20 Mar 2010 at 1:08

GoogleCodeExporter commented 8 years ago
This error still occurs

Original comment by andrewla...@gmail.com on 1 Apr 2010 at 10:30

GoogleCodeExporter commented 8 years ago
Confirmed , error still happens in Safari 4.0.4 

Original comment by vija...@gmail.com on 3 Apr 2010 at 3:35

GoogleCodeExporter commented 8 years ago
It happens in Chrome 4.1.249.1045 (42898) in Win7 but the fix for no css works 
: 
google.load('search','1',{nocss:1});

Thx for the tips!

Original comment by webmestr...@gtempaccount.com on 8 Apr 2010 at 5:20

GoogleCodeExporter commented 8 years ago
have same problem. Chrome 5.0.375.70. Temporarily I use nocss option.

Original comment by yaroslav...@gmail.com on 16 Jun 2010 at 5:32

GoogleCodeExporter commented 8 years ago
'nocss' doesn't work for me..

Original comment by kanasimi on 20 Jun 2010 at 5:22

GoogleCodeExporter commented 8 years ago
The issue is caused by 
"write('<link href="'+b+'" type="text/css" rel="stylesheet"></link>')}" in 
jsapi and the error is dependent on the doctype of the page calling it which is 
why some people are not affected.

I suspect that if someone at Google changes it to write('<link href="'+b+'" 
type="text/css" rel="stylesheet" />')} 

it should resolve all our issues without disabling css option.

Original comment by brinley on 15 Jul 2010 at 4:45

GoogleCodeExporter commented 8 years ago
I agree with brinley. Google, is anyone looking into this? It's the only 
validation error I'm getting for the XHTML of my website.

Original comment by circless...@gmail.com on 9 Aug 2010 at 5:04

GoogleCodeExporter commented 8 years ago
I amended the load line of my JavaScript to turn off the Google's default CSS, 
and now the pages validate. Thanks, webmestre@spektrummedia.com and jrgeerdes 
for the suggestion.

Original comment by circless...@gmail.com on 9 Aug 2010 at 5:23

GoogleCodeExporter commented 8 years ago
Seems this was reintroduced.

Original comment by jscud.w...@gmail.com on 9 Aug 2010 at 5:36

GoogleCodeExporter commented 8 years ago
I also see this issue when using google.load for the 'feed' api. Disabling the 
google default css prevents this error for me as well.

Original comment by rajs...@gmail.com on 22 Aug 2010 at 6:54

GoogleCodeExporter commented 8 years ago
Man, been searching this all along. I thought it was somewhere in my code. 
Thanks for nocss tips. 

Original comment by gausa...@gmail.com on 8 Sep 2010 at 6:23

GoogleCodeExporter commented 8 years ago
I tried the {nocss:1} thing. But it did not work for me. I am using AJAX 
Slideshow control.

Original comment by ameer1234567890 on 14 Sep 2010 at 12:56

GoogleCodeExporter commented 8 years ago
{nocss:1} causes auto-complete to not render correctly.

Any other suggested workarounds? Does Comment 19 work for all doctypes?

Please fix this Google.

Original comment by phili...@gmail.com on 20 Sep 2010 at 6:13

GoogleCodeExporter commented 8 years ago
It isn't valid. However, it would not break functionality as is the current 
case. Refer 
http://stackoverflow.com/questions/3755928/are-xhtml-style-close-tags-valid-in-h
tml

Original comment by ameer1234567890 on 20 Sep 2010 at 10:22

GoogleCodeExporter commented 8 years ago
Still getting this error with Safari 5.0.4. Any news on a fix?

Original comment by onemanan...@gmail.com on 2 Apr 2011 at 11:16