Editorial change.
Fixed a seg fault if tdom $parser enable is called in a callback of the parser it works on.
Merged from trunk.
Tried to document defaultcurrent.
Renamend method defaultcurrent to currentmarkup.
Update parser.test to the new method name currentmarkup (in fact, missed to save the file prior to commit the method name change.
Saved work in progress.