MooTools 1.3 beta

MooTools 1.3 beta has been released

MooTools Shorthand Element Creation

creates <div />
var div = new Element(div);
creates <div class=myClass />
var div = new Element(div.myClass);
creates <div class='myClass myOtherClass' title='My Title'>Element Inner Text</div>
var div = new Element('div#myId.myClass.myOtherClass[title=My Title][text=Element Inner Text]');

Example

Creating an element using an object (the 1.2 way):
new Element(input, {id: someID, class: 'someClass1 someClass2', disabled: true});
Creating an element using a selector string (the coolest way):
new Element(input#someID.someClass1.someClass2[disabled=true]);