Files
HtmlRW/Sources/HRW/GenHTML/Elements/Br.swift
2025-09-23 20:22:59 -04:00

41 lines
911 B
Swift

//
// Br.swift
// HTMLStandard
//
// Generated on 09/23/2025.
// THIS FILE IS GENERATED. DO NOT EDIT.
//
import Foundation
/// <br> Line break, e.g. in poem or postal address
public class Br : HTMLNode, IFlow, IPhrasing {
public init(_ attributes:[String:String], _ parser:XMLParser? = nil) throws {
var globalAttr = GlobalAttributesBuilder()
for (key, attValue) in attributes {
if globalAttr.trySetGlobalAttribute(key, attValue) {
continue
}
throw AppError("Unexpected attribute: \(key)")
}
super.init(globalAttr)
}
public override func renderAttributes() -> String {
var result = super.renderAttributes()
return result
}
override var nodeName: String {
return "br"
}
override var isVoidElement: Bool {
return true
}
}