Solved

Firebug finding illegal character in jquery 1.9.0

Posted on 2013-01-30
4
530 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

There are a couple ways to attach a JavaScript function to dynamically created elements. You can make a new script for each element as it’s created or you can use delegation. Delegation allows a single script that is added at page creation to mat…
Introduction Knockoutjs (Knockout) is a JavaScript framework (Model View ViewModel or MVVM framework).   The main ideology behind Knockout is to control from JavaScript how a page looks whilst creating an engaging user experience in the least …
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. 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.: (CODE)

729 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