Patent ID: 8397159
Filing Date: 2013-03-12
Classification: G06F

Abstract:
1. A method for solving UI style conflicts in web application composition, comprising: detecting a page element referring to a duplicate UI style definition in a web composite page, in a runtime environment of a web browser; determining that the web composite page comprises an imported widget; obtaining, based on the determining, a uniform resource locator (URL) of the imported widget; acquiring, based on the obtaining, a content set of the imported widget based on the URL; creating, based on the acquiring, a runtime environment isolated from the web composite page, wherein the runtime environment comprises a DOM structure of the imported widget comprising a plurality of page elements associated with the imported widget and UI style definitions associated with each of the plurality of page elements; determining, based on the DOM structure, that the page element referring to the duplicate UI style definition is included within one of imported widget and a local page from which the imported widget originates; identifying, based on determining that the page element is included within one of the imported widget and the local page, the UI style definition originally referred to by the page element in one of the DOM structure and the local page, respectively; and updating the identified UI style definition in the web composite page, so as to solve the UI style conflict.