Converted all html functions to use Element, Comment and Declaration protocols