Patent ID: 8528005

Claim:
A method in a web engine configured for an Internet Protocol Television (IPTV) Terminal Function comprising an application framework associated with an Application Programming Interface enabling display of applications, the method comprising: storing at least two applications, wherein the applications are arranged in a hierarchical Document Object Model (DOM) tree model in relation to each other and include a root node application; receiving an event targeting at least one application, and dispatching the received event to a target application by sending the event through the hierarchical tree model towards the targeted application-beginning with the root node application; determining for each current application traversed by the event if the event should be processed by the current application; if it is determined that the event should be processed by the current application, processing the event for the current application; and if it is determined that the event should not be processed by the current application, dispatching the event to a subsequent application in the hierarchical tree model.