public virtual IEvent CreateEvent(
string eventType)
{
switch (eventType)
{
case "Event":
case "Events":
case "HTMLEvents":
return new Event();
case "MutationEvent":
case "MutationEvents":
return new MutationEvent();
case "UIEvent":
case "UIEvents":
return new UiEvent();
case "MouseEvent":
case "MouseEvents":
return new MouseEvent();
default:
throw new DomException(
DomExceptionType.NotSupportedErr,
"Event type \"" + eventType + "\" not suppoted");
}
}