Firefox KRL extension on yahoo mail -


it looks firefox extension might have issue yui 2.5.2 , 2.7 rich text editor. in platform rally when see text area, lot of html embedded it. rally uses yui 2.5.2. easier example see in yahoo mail. if install kynetx extension , go create new mail in yahoo account, see following output in compose box rendered html. looks bug either yui or kynetx app.

',' ',' ',' ',' ',' ','',' ',' ',' ',' ',' filters:',' trace',' debug',' info',' warn',' error',' fatal',' all',' ',' ',' search: ',' ',' regex',' match case',' disable',' ',' ',' ',' filter',' highlight all',' ',' ',' ',' options:',' log',' wrap',' newest @ top',' scroll latest',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ',' ','',''];};var defaultcommandlinefunctions=[];consoleappender=function(){};var consoleappenderidcounter=1;consoleappender.prototype=new appender();consoleappender.prototype.create=function(inpage,container,lazyinit,initiallyminimized,usedocumentwrite,width,height,focusconsolewindow){var appender=this;var initialized=false;var consolewindowcreated=false;var consolewindowloaded=false;var consoleclosed=false;var queuedloggingevents=[];var issupported=true;var consoleappenderid=consoleappenderidcounter++;initiallyminimized=extractbooleanfromparam(initiallyminimized,this.defaults.initiallyminimized);lazyinit=extractbooleanfromparam(lazyinit,this.defaults.lazyinit);usedocumentwrite=extractbooleanfromparam(usedocumentwrite,this.defaults.usedocumentwrite);var newestmessageattop=this.defaults.newestmessageattop;var scrolltolatestmessage=this.defaults.scrolltolatestmessage;width=width?width:this.defaults.width;height=height?height:this.defaults.height;var maxmessages=this.defaults.maxmessages;var showcommandline=this.defaults.showcommandline;var commandlineobjectexpansiondepth=this.defaults.commandlineobjectexpansiondepth;var showhidebutton=this.defaults.showhidebutton;var showclosebutton=this.defaults.showclosebutton;var showlogentrydeletebuttons=this.defaults.showlogentrydeletebuttons;this.setlayout(this.defaults.layout);var init,createwindow,safetoappend,getconsolewindow,open;var appendername=inpage?"inpageappender":"popupappender";var checkcanconfigure=function(configoptionname){if(consolewindowcreated){handleerror(appendername+": configuration option '"+configoptionname+"' may not set after appender has been initialized");return false;} return true;};var consolewindowexists=function(){return(consolewindowloaded&&issupported&&!consoleclosed);};this.isnewestmessageattop=function(){return newestmessageattop;};this.setnewestmessageattop=function(newestmessageattopparam){newestmessageattop=bool(newestmessageattopparam);if(consolewindowexists()){getconsolewindow().setnewestattop(newestmessageattop);}};this.isscrolltolatestmessage=function(){return scrolltolatestmessage;};this.setscrolltolatestmessage=function(scrolltolatestmessageparam){scrolltolatestmessage=bool(scrolltolatestmessageparam);if(consolewindowexists()){getconsolewindow().setscrolltolatest(scrolltolatestmessage);}};this.getwidth=function(){return width;};this.setwidth=function(widthparam){if(checkcanconfigure("width")){width=extractstringfromparam(widthparam,width);}};this.getheight=function(){return height;};this.setheight=function(heightparam){if(checkcanconfigure("height")){height=extractstringfromparam(heightparam,height);}};this.getmaxmessages=function(){return maxmessages;};this.setmaxmessages=function(maxmessagesparam){maxmessages=extractintfromparam(maxmessagesparam,maxmessages);if(consolewindowexists()){getconsolewindow().setmaxmessages(maxmessages);}};this.isshowcommandline=function(){return showcommandline;};this.setshowcommandline=function(showcommandlineparam){showcommandline=bool(showcommandlineparam);if(consolewindowexists()){getconsolewindow().setshowcommandline(showcommandline);}};this.isshowhidebutton=function(){return showhidebutton;};this.setshowhidebutton=function(showhidebuttonparam){showhidebutton=bool(showhidebuttonparam);if(consolewindowexists()){getconsolewindow().setshowhidebutton(showhidebutton);}};this.isshowclosebutton=function(){return showclosebutton;};this.setshowclosebutton=function(showclosebuttonparam){showclosebutton=bool(showclosebuttonparam);if(consolewindowexists()){getconsolewindow().setshowclosebutton(showclosebutton);}};this.getcommandlineobjectexpansiondepth=function(){return commandlineobjectexpansiondepth;};this.setcommandlineobjectexpansiondepth=function(commandlineobjectexpansiondepthparam){commandlineobjectexpansiondepth=extractintfromparam(commandlineobjectexpansiondepthparam,commandlineobjectexpansiondepth);};var minimized=initiallyminimized;this.isinitiallyminimized=function(){return initiallyminimized;};this.setinitiallyminimized=function(initiallyminimizedparam){if(checkcanconfigure("initiallyminimized")){initiallyminimized=bool(initiallyminimizedparam);minimized=initiallyminimized;}};this.isusedocumentwrite=function(){return usedocumentwrite;};this.setusedocumentwrite=function(usedocumentwriteparam){if(checkcanconfigure("usedocumentwrite")){usedocumentwrite=bool(usedocumentwriteparam);}};function queuedloggingevent(loggingevent,formattedmessage){this.loggingevent=loggingevent;this.levelname=loggingevent.level.name;this.formattedmessage=formattedmessage;} queuedloggingevent.prototype.append=function(){getconsolewindow().log(this.levelname,this.formattedmessage);};function queuedgroup(name,initiallyexpanded){this.name=name;this.initiallyexpanded=initiallyexpanded;} queuedgroup.prototype.append=function(){getconsolewindow().group(this.name,this.initiallyexpanded);};function queuedgroupend(){} queuedgroupend.prototype.append=function(){getconsolewindow().groupend();};var checkandappend=function(){safetoappend();if(!initialized){init();}else if(consoleclosed&&reopenwhenclosed){createwindow();} if(safetoappend()){appendqueuedloggingevents();}};this.append=function(loggingevent){if(issupported){var formattedmessage=appender.getlayout().format(loggingevent);if(this.getlayout().ignoresthrowable()){formattedmessage+=loggingevent.getthrowablestrrep();} queuedloggingevents.push(new queuedloggingevent(loggingevent,formattedmessage));checkandappend();}};this.group=function(name,initiallyexpanded){if(issupported){queuedloggingevents.push(new queuedgroup(name,initiallyexpanded));checkandappend();}};this.groupend=function(){if(issupported){queuedloggingevents.push(new queuedgroupend());checkandappend();}};var appendqueuedloggingevents=function(){var currentloggingevent;while(queuedloggingevents.length>0){queuedloggingevents.shift().append();} if(focusconsolewindow){getconsolewindow().focus();}};this.setaddedtologger=function(logger){this.loggers.push(logger);if(enabled&&!lazyinit){init();}};this.clear=function(){if(consolewindowexists()){getconsolewindow().clearlog();} queuedloggingevents.length=0;};this.focus=function(){if(consolewindowexists()){getconsolewindow().focus();}};this.focuscommandline=function(){if(consolewindowexists()){getconsolewindow().focuscommandline();}};this.focussearch=function(){if(consolewindowexists()){getconsolewindow().focussearch();}};var commandwindow=window;this.getcommandwindow=function(){return commandwindow;};this.setcommandwindow=function(commandwindowparam){commandwindow=commandwindowparam;};this.executelastcommand=function(){if(consolewindowexists()){getconsolewindow().evallastcommand();}};var commandlayout=new patternlayout("%m");this.getcommandlayout=function(){return commandlayout;};this.setcommandlayout=function(commandlayoutparam){commandlayout=commandlayoutparam;};this.evalcommandandappend=function(expr){var commandreturnvalue={appendresult:true,iserror:false};var commandoutput="";try{var result,i;if(!commandwindow.eval&&commandwindow.execscript){commandwindow.execscript("null");} var commandlinefunctionshash={};for(i=0,len=commandlinefunctions.length;i";consoleclosed=false;var iframedocumentexiststest=function(win){try{return bool(win)&&bool(win.document);}catch(ex){return false;}};if(iframedocumentexiststest(getconsolewindow())){writetodocument();}else{pollconsolewindow(iframedocumentexiststest,100,writetodocument,initerrormessage);} consolewindowcreated=true;};createwindow=function(show){if(show||!initiallyminimized){var pageloadhandler=function(){if(!container){containerelement=document.createelement("div");containerelement.style.position="fixed";containerelement.style.left="0";containerelement.style.right="0";containerelement.style.bottom="0";document.body.appendchild(containerelement);appender.addcssproperty("borderwidth","1px 0 0 0");appender.addcssproperty("zindex",1000000);open();}else{try{var el=document.getelementbyid(container);if(el.nodetype==1){containerelement=el;} open();}catch(ex){handleerror("inpageappender.init: invalid container element '"+container+"' supplied",ex);}}};if(pageloaded&&container&&container.appendchild){containerelement=container;open();}else if(pageloaded){pageloadhandler();}else{log4javascript.addeventlistener("load",pageloadhandler);} windowcreationstarted=true;}};init=function(){createwindow();initialized=true;};getconsolewindow=function(){var iframe=window.frames[iframeid];if(iframe){return iframe;}};safetoappend=function(){if(issupported&&!consoleclosed){if(consolewindowcreated&&!consolewindowloaded&&getconsolewindow()&&isloaded(getconsolewindow())){consolewindowloaded=true;} return consolewindowloaded;} return false;};}else{var useoldpopup=appender.defaults.useoldpopup;var complainaboutpopupblocking=appender.defaults.complainaboutpopupblocking;var reopenwhenclosed=this.defaults.reopenwhenclosed;this.isuseoldpopup=function(){return useoldpopup;};this.setuseoldpopup=function(useoldpopupparam){if(checkcanconfigure("useoldpopup")){useoldpopup=bool(useoldpopupparam);}};this.iscomplainaboutpopupblocking=function(){return complainaboutpopupblocking;};this.setcomplainaboutpopupblocking=function(complainaboutpopupblockingparam){if(checkcanconfigure("complainaboutpopupblocking")){complainaboutpopupblocking=bool(complainaboutpopupblockingparam);}};this.isfocuspopup=function(){return focusconsolewindow;};this.setfocuspopup=function(focuspopupparam){focusconsolewindow=bool(focuspopupparam);};this.isreopenwhenclosed=function(){return reopenwhenclosed;};this.setreopenwhenclosed=function(reopenwhenclosedparam){reopenwhenclosed=bool(reopenwhenclosedparam);};this.close=function(){loglog.debug("close "+this);try{popup.close();this.unload();}catch(ex){}};this.hide=function(){loglog.debug("hide "+this);if(consolewindowexists()){this.close();}};this.show=function(){loglog.debug("show "+this);if(!consolewindowcreated){open();}};this.isvisible=function(){return safetoappend();};var popup;open=function(){var windowproperties="width="+width+",height="+height+",status,resizable";var windowname="popup_"+location.host.replace(/[^a-z0-9]/gi,"_")+"_"+consoleappenderid;if(!useoldpopup||!usedocumentwrite){windowname=windowname+"_"+uniqueid;} var checkpopupclosed=function(win){if(consoleclosed){return true;}else{try{return bool(win)&&win.closed;}catch(ex){}} return false;};var popupclosedcallback=function(){if(!consoleclosed){appender.unload();}};function finalinit(){getconsolewindow().setcloseifopenercloses(!useoldpopup||!usedocumentwrite);consolewindowloadhandler();consolewindowloaded=true;appendqueuedloggingevents();pollconsolewindow(checkpopupclosed,500,popupclosedcallback,"popupappender.checkpopupclosed: error checking pop-up window");} try{popup=window.open(getconsoleurl(),windowname,windowproperties);consoleclosed=false;consolewindowcreated=true;if(popup){if(usedocumentwrite&&useoldpopup&&isloaded(popup)){popup.mainpagereloaded();finalinit();}else{if(usedocumentwrite){writehtml(popup.document);} var popuploadedtest=function(win){return bool(win)&&isloaded(win);};if(isloaded(popup)){finalinit();}else{pollconsolewindow(popuploadedtest,100,finalinit,"popupappender.init: unable create console window");}}}else{issupported=false;loglog.warn("popupappender.init: pop-ups blocked, please unblock use popupappender");if(complainaboutpopupblocking){handleerror("log4javascript: pop-up windows appear blocked. please unblock them use pop-up logging.");}}}catch(ex){handleerror("popupappender.init: error creating pop-up",ex);}};createwindow=function(){if(!initiallyminimized){open();}};init=function(){createwindow();initialized=true;};getconsolewindow=function(){return popup;};safetoappend=function(){if(issupported&&!isundefined(popup)&&!consoleclosed){if(popup.closed||(consolewindowloaded&&isundefined(popup.closed))){appender.unload();loglog.debug("popupappender: pop-up closed");return false;} if(!consolewindowloaded&&isloaded(popup)){consolewindowloaded=true;}} return issupported&&consolewindowloaded&&!consoleclosed;};} this.getconsolewindow=getconsolewindow;};consoleappender.addglobalcommandlinefunction=function(functionname,commandlinefunction){defaultcommandlinefunctions.push([functionname,commandlinefunction]);};function popupappender(lazyinit,initiallyminimized,usedocumentwrite,width,height){this.create(false,null,lazyinit,initiallyminimized,usedocumentwrite,width,height,this.defaults.focuspopup);} popupappender.prototype=new consoleappender();popupappender.prototype.defaults={layout:new patternlayout("%d{hh:mm:ss} %-5p - %m{1}%n"),initiallyminimized:false,focuspopup:false,lazyinit:true,useoldpopup:true,complainaboutpopupblocking:true,newestmessageattop:false,scrolltolatestmessage:true,width:"600",height:"400",reopenwhenclosed:false,maxmessages:null,showcommandline:true,commandlineobjectexpansiondepth:1,showhidebutton:false,showclosebutton:true,showlogentrydeletebuttons:true,usedocumentwrite:true};popupappender.prototype.tostring=function(){return"popupappender";};log4javascript.popupappender=popupappender;function inpageappender(container,lazyinit,initiallyminimized,usedocumentwrite,width,height){this.create(true,container,lazyinit,initiallyminimized,usedocumentwrite,width,height,false);} inpageappender.prototype=new consoleappender();inpageappender.prototype.defaults={layout:new patternlayout("%d{hh:mm:ss} %-5p - %m{1}%n"),initiallyminimized:false,lazyinit:true,newestmessageattop:false,scrolltolatestmessage:true,width:"100%",height:"220px",maxmessages:null,showcommandline:true,commandlineobjectexpansiondepth:1,showhidebutton:false,showclosebutton:false,showlogentrydeletebuttons:true,usedocumentwrite:true};inpageappender.prototype.tostring=function(){return"inpageappender";};log4javascript.inpageappender=inpageappender;log4javascript.inlineappender=inpageappender;})();function padwithspaces(str,len){if(str.length<([^:]+):"+el.tagname+"[^>]*>","i");if(regex.test(el.outerhtml)){return regexp.$1.tolowercase();}} return"";} var lt="<";var gt=">";if(includerootnode&&rootnode.nodetype!=nodetypes.document_fragment_node){switch(rootnode.nodetype){case nodetypes.element_node:var tagname=rootnode.tagname.tolowercase();xhtml=startnewline?newline+indentation:"";xhtml+=lt;var prefix=getnamespace(rootnode);var hasprefix=prefix?true:false;if(hasprefix){xhtml+=prefix+":";} xhtml+=tagname;for(i=0,len=rootnode.attributes.length;i"+newline;case nodetypes.document_node:xhtml="";for(var i=0,len=rootnode.childnodes.length;i 

bug reports , conflict debugging questions best answered via email, not question here on stackoverflow. please email support@kynetx.com details of errors, , we'll triage them , address them there.


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -