The SnippetHandler.updateSnippet declares, that it recieves snippet as HTMLElement, but the events AfterUpdateEvent and BeforeUpdateEvent then have it declared as Element. Based on other code occurences (SnippetHandler.findSnippets where snippets are retrieved, type SnippetUpdateOperation, ...), I guess that the Element should be right.
Shouldn't there therefore be Element in updateSnippet method signature as well?
The
SnippetHandler.updateSnippet
declares, that it recievessnippet
asHTMLElement
, but the eventsAfterUpdateEvent
andBeforeUpdateEvent
then have it declared asElement
. Based on other code occurences (SnippetHandler.findSnippets
where snippets are retrieved, typeSnippetUpdateOperation
, ...), I guess that the Element should be right.Shouldn't there therefore be
Element
inupdateSnippet
method signature as well?