Patent ID: 7447706

Claim:
A computer-implemented method for populating an auto-complete list for a cascading style (CSS) selector, the method comprising: receiving a user input that triggers generation of the auto-completion list for the CSS selector, wherein the user input is in a CSS selector of a target mark-up language document; parsing the portion of the target mark-up language document that precedes the user input that triggered the generation of the auto-completion list for the CSS selector to determine contextual information associated with the CSS selector; when the determined contextual information indicates a new class, populating the auto-completion list with class attribute values indicated in the parsed portion of the target mark-up language document that precedes the user input that triggered the generation of the auto-completion list for the CSS selector; when the determined contextual information indicates a new ID, populating the auto-completion list with ID attribute values indicated in the parsed portion of the target mark-up language document that precedes the user input that triggered the generation of the auto-completion list for the CSS selector; when the determined contextual information indicates a pseudo-class, populating the auto-completion list with pseudo-classes indicated in the parsed portion of the target mark-up language document that precedes the user input that triggered the generation of the auto-completion list for the CSS selector; when the determined contextual information indicates a property associated with a rule, populating the auto-completion list with properties associated with the target mark-up language document and the CSS selector, wherein selection of a property in the auto-completion list causes the auto-completion list to populate with acceptable values of the selected property derived from the parsed target mark-up language document; and when the determined contextual information indicates a new tag, determining whether selector elements precede the user input, when selector elements do not precede the user input, populating the auto-completion list with tags indicated in the parsed portion of the target mark-up language document that precedes the user input that triggered the generation of the auto-completion list for the CSS selector, and when selector elements precede the user input, populating the auto-completion list with tags located in a schema of the target mark-up language document.