Add support of <optgroup>.