// // Figure.swift // HTMLStandard // // Generated on 09/23/2025. // THIS FILE IS GENERATED. DO NOT EDIT. // import Foundation ///
Figure with optional caption public class Figure : HTMLNode, IFlow, IPalpable, ISectioningRoot { public init(_ attributes:[String:String], _ parser:XMLParser? = nil) throws { var globalAttr = GlobalAttributesBuilder() for (key, attValue) in attributes { if globalAttr.trySetGlobalAttribute(key, attValue) { continue } continue } var allItems:[HTMLNode] = [] while let obj = try parser?.readObject(endTag: "figure", xmlToHtmlMapper) { allItems.append(obj) } super.init(globalAttr, allItems) } public func addChild(_ someElement:IFlow) { children.append(someElement) } public override func renderAttributes() -> String { var result = super.renderAttributes() return result } override var nodeName: String { return "figure" } override var isVoidElement: Bool { return false } }