The following cases and many alike cause errors. Mostly errors like ".replace is not a function [undefined]".
mw.html.element( 'p', {}, 500 );
mw.html.element( 'option', { selected: 'foo' === 'foo' }, 'label' );
Version: unspecified
Severity: normal