Generate a CSS path based on this element.

Following the Open/Closed principle, I wanted to extend the behaviour of Element. I would have liked for the Elements class generate instances of my Element subclass. I could not see a way to do so. I have added a "cssPath" method that provides the shortest CSS selector for the element in the hopes that it may prove useful to others.