Solved

Firebug finding illegal character in jquery 1.9.0

Posted on 2013-01-30
4
526 Views
Last Modified: 2013-02-05
I'm using jquery 1.9.0.  When I load it.  Firefox says it finds and illegal character at line 3811
 has the following code:

try {
3811 -->	slice.call( docElem.childNodes, 0 )[0].nodeType;
} catch ( e ) {
	slice = function( i ) {
		var elem,
			results = [];
		for ( ; (elem = this[i]); i++ ) {
			results.push( elem );
		}
		return results;
	};
}

Open in new window

Not sure whey this is happening.  Anyone else experience this?

Thanks!
0
Comment
Question by:HyperBPP
  • 2
4 Comments
 
LVL 82

Assisted Solution

by:leakim971
leakim971 earned 250 total points
ID: 38836889
where do you see that?
firefox or firebug?
0
 
LVL 11

Assisted Solution

by:mcnute
mcnute earned 250 total points
ID: 38838933
We need to see the related code which is calling this method within jquery. In short words your code. The whole context. A sample page you make up and put online for us to see, or you post your code here.
0
 
LVL 6

Accepted Solution

by:
HyperBPP earned 0 total points
ID: 38839760
Sorry,  in FireBug.... Found a couple of illegal characters in a piece of code I copied in offline that did not show up in my editor but did in firebug.... blah!
0
 
LVL 6

Author Closing Comment

by:HyperBPP
ID: 38854287
My comment contains the actual solution.  Other input rewarded for assistance.
0

Featured Post

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

PROBLEM: The other day I was working on adding an ajax request to a webpage that already had a dialog box on the page.  The dialog box was using relative positioning to be positioned next to a form field I had on the page.  Everything was working…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now