if (options != null && options.contains(ModeOptions.JS_QUOTED))
return createParser(parserInJsQ);
// With no options given, this method is just a convenience wrapper for
// the two calls below.
HtmlParser parser = new HtmlParserImpl();
parser.resetMode(mode);
return parser;
}