public static String compileObject(Object o, Browsers b) {
		if (o instanceof HTMLElement) {
			HTMLElement html = (HTMLElement) o;
			if (checkCompatibility(html, b)) {
				return ((HTMLElement) o).renderHTML();
			} else {
				addCompatibilityWarning(html);
				return html.renderHTML();
			}
		} else if (isPage(o)) {
			HTMLElement html = compilePage(o);
			if (checkCompatibility(html, b)) {
				return html.renderHTML();
			} else {
				addCompatibilityWarning(html);
				return html.renderHTML();
			}
		} else if (isPartial(o)) {
			HTMLElement html = compilePartial(o);
			if (checkCompatibility(html, b)) {
				return html.renderHTML();
			} else {
				addCompatibilityWarning(html);
				return html.renderHTML();
			}
		} else {
			return o.toString();
		}
	}