Jump to content

Need XML advise


burgutex

Recommended Posts

I am preparing a Blogger website at proweblabs-ajans.blogspot.com. I put some codes to the template, but I got some errors below:
XML, line 3302, column 599 when fixing get error: Element type "node.childNodes.length" must be followed by either attribute specifications, ">" or "/>"
codes are below:
(function($){$.fn.highlight=function(pat){function innerHighlight(node,pat){var skip=0;if(node.nodeType==3){var pos=node.data.toUpperCase().indexOf(pat);if(pos>=0){var spannode=document.createElement("span");spannode.className="highlight";var middlebit=node.splitText(pos);var endbit=middlebit.splitText(pat.length);var middleclone=middlebit.cloneNode(true);spannode.appendChild(middleclone);middlebit.parentNode.replaceChild(spannode,middlebit);skip=1}}else{if(node.nodeType==1&&node.childNodes&&!/(script|style)/i.test(node.tagName)){for(var i=0;i<node.childNodes.length;++i){i+=innerHighlight(node.childNodes[i],pat)}}}return skip}return this.length&&pat&&pat.length?this.each(function(){innerHighlight(this,pat.toUpperCase())}):this};$.fn.removeHighlight=function(){return this.find("span.highlight").each(function(){this.parentNode.firstChild.nodeName;with(this.parentNode){replaceChild(this.firstChild,this);normalize()}}).end()}})(jQuery);(function(a){a(document).ready(function(){var c=a("#text-finder"),e=c.children().first(),f=e.next(),d=a(".post-body"),g=a("html, body");e.on("keyup",function(){d.removeHighlight().highlight(this.value);g.scrollTop(d.find("span.highlight").first().offset().top-50)});f.on("click",function(){d.removeHighlight();e.val("").trigger("focus");g.scrollTop(0);return false});var b=readCookie("font_size");if(b!=""&&b!=null){a(".post-body").css("font-size",b+"px")}a(".zoom-text").click(function(){var j=a(".post-body").css("font-size");j=j.replace("px","");var h=a(this).attr("class");var i=Number(j);if(h.indexOf("zoom-in-text")!=-1){i++}else{i-=1}createCookie("font_size",i);a(".post-body").css("font-size",i+"px");return false})})})(jQuery);
how can I fix it?
Thanks.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...