// <input onclick="doClick(START HERE
return HtmlParserFactory.createParserInAttribute(HtmlParser.ATTR_TYPE.JS, true, null);
case ESCAPE_AUTO_UNQUOTED_ATTR_JS:
// <input onclick=doClick('START HERE
throw new JSilverAutoEscapingException(
"Attempting to start HTML parser in unsupported mode" + mode, resourceName);
case ESCAPE_AUTO_UNQUOTED_ATTR_UNQUOTED_JS:
// <input onclick=doClick(START HERE
return HtmlParserFactory.createParserInAttribute(HtmlParser.ATTR_TYPE.JS, false, null);
case ESCAPE_AUTO_ATTR_CSS:
// <input style="START HERE
return HtmlParserFactory.createParserInAttribute(HtmlParser.ATTR_TYPE.STYLE, true, null);
case ESCAPE_AUTO_UNQUOTED_ATTR_CSS:
// <input style=START HERE
return HtmlParserFactory.createParserInAttribute(HtmlParser.ATTR_TYPE.STYLE, false, null);
default:
throw new JSilverAutoEscapingException("Attempting to start HTML parser in invalid mode"
+ mode, resourceName);
}
}