Initial Commit

This commit is contained in:
2025-09-23 20:22:59 -04:00
commit 743fc51873
135 changed files with 12240 additions and 0 deletions

View File

@@ -0,0 +1,49 @@
//
// H5.swift
// HTMLStandard
//
// Generated on 09/23/2025.
// THIS FILE IS GENERATED. DO NOT EDIT.
//
import Foundation
/// <h5> Section heading
public class H5 : HTMLNode, IFlow, IHeading, IPalpable {
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)")
}
var allItems:[HTMLNode] = []
while let obj = try parser?.readObject(endTag: "h5", xmlToHtmlMapper) {
allItems.append(obj)
}
super.init(globalAttr, allItems)
}
public func addChild(_ someElement:IPhrasing) {
children.append(someElement)
}
public override func renderAttributes() -> String {
var result = super.renderAttributes()
return result
}
override var nodeName: String {
return "h5"
}
override var isVoidElement: Bool {
return false
}
}