Files
2025-09-23 20:22:59 -04:00

41 lines
898 B
Swift

//
// Wbr.swift
// HTMLStandard
//
// Generated on 09/23/2025.
// THIS FILE IS GENERATED. DO NOT EDIT.
//
import Foundation
/// <wbr> Line breaking opportunity
public class Wbr : 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 "wbr"
}
override var isVoidElement: Bool {
return true
}
}