Bug 1003894 Followup to switch from Text to nsIContent so that we can safely use do_QueryInterface r=ehsan