开发者

IE6 Javascript Error at Char: 21007

开发者 https://www.devze.com 2023-03-14 20:32 出处:网络
I am at my wits end, an page for one of my clients is throwing an error in IE6 Line: 3 Char: 21007 Error: Expected \':\'

I am at my wits end, an page for one of my clients is throwing an error in IE6

Line: 3
Char: 21007
Error: Expected ':'
Code: 0

开发者_C百科this is line 3

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

I thought about 'what if ie6 counts the first line as the first line with content', that would make line 3

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">

the only file i have with that many columns is jquery-1.5.2.min.js and ive tried swapping out versions and the error stays the same.

I dont understand what the error is coming from.


Turns out this is an issue with the AddThis widget. The fix for my specific issue is documented here http://www.addthis.com/forum/viewtopic.php?f=5&t=29776



Just change the javascript include:

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#username=yourusername"></script>

To this:

<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js?pub=yourusername"></script>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号