The OpenD Programming Language

Document.selfClosedElements

List of elements that can be assumed to be self-closed in this document. The default for a Document are a hard-coded list of ones appropriate for HTML. For XmlDocument, it defaults to empty. You can modify this after construction but before parsing.

class Document
immutable(string)[] selfClosedElements;

Meta

History

Added February 8, 2021 (included in dub release 9.2)

Changed from string[] to immutable(string)[] on February 4, 2024 (dub v11.5) to plug a hole discovered by the OpenD compiler's diagnostics.