www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need XML advise

Hybrid View

  1. #1
    Join Date
    Nov 2013
    Location
    Turkey
    Posts
    2

    Lightbulb Need XML advise

    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:


    Code:
    (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&amp;&amp;node.childNodes&amp;&amp;!/(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&amp;&amp;pat&amp;&amp;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!=""&amp;&amp;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.

  2. #2
    Join Date
    Dec 2013
    Posts
    2
    Thank you for sharing , I also encountered this situation before !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles