selfClosedElements parameter was added. It defaults to the same behavior as
before: using the hard-coded list of HTML elements, but it can now be overridden. If you use Document.createElement, it will use the list set for the current document. Otherwise, you can pass something here if you like.