HTML 5: add support for "main" element

(integrated from trunk branch change 5b43b71 by Todd Whiteman <toddw@activestate.com>)