Issue 1101: Allow startingTag method to handle text / comment nodes

Fix for issue https://github.com/angular/angular.js/issues/1101

Please take a look and see if this was the problem being discussed.

Shyam