Add support for <optgroup>s