if (dojo.html.styleSheet.insertRule) { var rule = selector + " { " + declaration + " }"; return dojo.html.styleSheet.insertRule(rule, index); } else if (dojo.html.styleSheet.addRule) { return dojo.html.styleSheet.addRule(selector, declaration, index); } else { return null; } 
if (dojo.html.styleSheet.insertRule) { var rule = selector + " { " + declaration + " }"; return dojo.html.styleSheet.insertRule(rule, index); } else if (dojo.html.styleSheet.addRule) { return dojo.html.styleSheet.addRule(selector, declaration, index); } else { return null; } 
dojo.html.insertCssRule = function(/* string */selector, /* string */declaration, /* integer? */index) {	//	summary	//	Attempt to insert declaration as selector on the internal stylesheet; if index try to set it there.	if (!dojo.html.styleSheet) {		if (document.createStyleSheet) { // IE			dojo.html.styleSheet = document.createStyleSheet();		} else if (document.styleSheets[0]) { // rest			// FIXME: should create a new style sheet here			// fall back on an exsiting style sheet			dojo.html.styleSheet = document.styleSheets[0];		} else { 			return null;	//	integer 		} // fail	}	if (arguments.length < 3) { // index may == 0		if (dojo.html.styleSheet.cssRules) { // W3			index = dojo.html.styleSheet.cssRules.length;		} else if (dojo.html.styleSheet.rules) { // IE			index = dojo.html.styleSheet.rules.length;		} else { 			return null;	//	integer 		} // fail	}	if (dojo.html.styleSheet.insertRule) { // W3		var rule = selector + " { " + declaration + " }";		return dojo.html.styleSheet.insertRule(rule, index);	//	integer	} else if (dojo.html.styleSheet.addRule) { // IE		return dojo.html.styleSheet.addRule(selector, declaration, index);	//	integer	} else { 		return null; // integer	} // fail}
6315	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6315/2f1d2cb699c9d9329e8b782b0463156e211cb0f6/struts_dojo.js.uncompressed.js/buggy/src/main/resources/org/apache/struts2/static/dojo/struts_dojo.js.uncompressed.js