1. A method for Cascading Style Sheet (CSS) selector matching, which method comprises: receiving content including markup language text and text which includes at least one CSS selector; parsing the markup language into a Document Object Model (DOM) tree; parsing the text which includes at least one CSS selector into a data structure representing the at least one CSS selector; compiling the data structure into machine code; and executing the machine code to perform the CSS selector matching, wherein the executing of the machine code comprises: for each DOM node from said DOM tree, invoking the machine code for the at least one CSS selector to determine whether each of the at least one CSS selector matches the DOM node, and for each of the at least one CSS selector determined to match the DOM node, apply a corresponding CSS property to the DOM node.