Apparatus and method for extracting cascading style sheet rules
AssigneeSamsung Electronics Co., Ltd.
InventorsDong-Woo Im, Seung-Mo Cho, Sung-Hak Lee, Soon-Cheol Hong, Sung-Jong Seo
Life of this patent
Estimating the term…
Abstract
Provided are an apparatus and method for extracting cascading style sheet (CSS) rules. The apparatus includes a generation unit configured to generate an identification list that includes identification symbols that correspond to one or more selectors, for each document object model (DOM) node. The apparatus also includes a rule extraction unit configured to select a target DOM node and extract one or more CSS rules that are applicable to the target DOM node based on identification symbols that are included in an identification list that corresponds to the target DOM node.
Claims17
A method of extracting cascading style sheet (CSS) rules, the method comprising:
- generating an identification list that comprises identification symbols that correspond to a plurality of selectors, for each document object model (DOM) node included in a DOM node tree corresponding to a document, where each DOM node corresponds to one of the plurality of selectors;
- selecting a target DOM node from the DOM node tree;
- and
- extracting one or more target CSS rules that have an end selector that is the same as a selector corresponding to the target DOM node and which have another selector that is the same as a selector included in the identification list of the target DOM node, based on identification symbols that are included in an identification list generated for the target DOM node.
An apparatus for extracting cascading style sheet (CSS) rules, the apparatus comprising:
- a processor;
- a generation unit configured to generate an identification list that comprises identification symbols that correspond to a plurality of selectors, for each document object model (DOM) node included in a DOM node tree corresponding to a document, where each DOM node corresponds to one of the plurality of selectors;
- and
- a rule extraction unit configured to select a target DOM node from the DOM node tree and to extract one or more target CSS rules that have an end selector that is the same as a selector corresponding to the target DOM node and which have another selector that is the same as a selector included in the identification list of the target DOM node, based on identification symbols that are included in an identification list generated for the target DOM node.
Dependencies are inferred from the claim text.