C14n performance fix

It could be confusing to tag a version as stable on a feature branch. I would suggest we merge this to master and move the tag there?
Maybe we could put a comment here stating the reason for this otherwise puzzling piece of code. Or even move it into it's own method ```getC14nElementFromDomNode``` or some such?