rem:  var src = node.getAttribute("src"); if (src != null && src != "") {  
add:  var style = Wicket.Head.createElement("style");   style.id = node.getAttribute("id"); 
context: 		steps.push(function(notify) {					// if element in same id is already in document, 			// or element with same src attribute is in document, skip it			if (Wicket.DOM.containsElement(node) ||				Wicket.Head.containsElement(node, "src")) {				notify(); 				return;			}						// determine whether it is external javascript (has src attribute set)			var src = node.getAttribute("src");			if (src != null && src != "") {				// load the external javascript using Wicket.Ajax.Request								// callback when script is loaded				var onLoad = function(content) {					Wicket.Head.addJavascript(content, null, src);					Wicket.Ajax.invokePostCallHandlers();					// continue to next step					notify();				}				// we need to schedule the request as timeout				// calling xml http request from another request call stack doesn't work				window.setTimeout(function() {					var req = new Wicket.Ajax.Request(src, onLoad, false, false);					req.debugContent = false;					if (Wicket.Browser.isKHTML())						// konqueror can't process the ajax response asynchronously, threfore the 						// javascript loading must be also synchronous						req.async = false;					// get the javascript					req.get();									},1);			} else {				// serialize the element content to string				var text = Wicket.DOM.serializeNodeChildren(node);								// add javascript to document head				Wicket.Head.addJavascript(text, node.getAttribute("id"));								// continue to next step				notify();			}		});					
meta: 1204	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/1204/c4e708e2653ee82392c5f20ddbdd2a54e3b1687c/wicket-ajax.js/buggy/jdk-1.4/wicket/src/main/java/org/apache/wicket/ajax/wicket-ajax.js