Initial Commit
This commit is contained in:
45
Sources/HRW/Internal/GlobalAttributeKey.swift
Normal file
45
Sources/HRW/Internal/GlobalAttributeKey.swift
Normal file
@@ -0,0 +1,45 @@
|
||||
//
|
||||
// GlobalAttributeKey.swift
|
||||
// HRW
|
||||
//
|
||||
// Created by Isaac Paul on 10/15/24.
|
||||
// Non-commercial license, see LICENSE.MD in the project root for details
|
||||
//
|
||||
|
||||
public protocol IGlobalAttributeContainer {
|
||||
var globalAttributes:Dictionary<GlobalAttributeKey, String> { get set }
|
||||
var dataAttributes:Dictionary<String, String> { get set }
|
||||
}
|
||||
|
||||
public enum GlobalAttributeKey: String {
|
||||
case class_ = "class"
|
||||
case id
|
||||
case slot
|
||||
|
||||
case accesskey
|
||||
case autocapitalize
|
||||
case autocorrect
|
||||
case autofocus
|
||||
case contenteditable
|
||||
case dir
|
||||
case draggable
|
||||
case enterkeyhint
|
||||
case hidden
|
||||
case inert
|
||||
case inputmode
|
||||
case is_ = "is"
|
||||
case itemid
|
||||
case itemprop
|
||||
case itemref
|
||||
case itemscope
|
||||
case itemtype
|
||||
case lang
|
||||
case nonce
|
||||
case popover
|
||||
case spellcheck
|
||||
case style
|
||||
case tabindex
|
||||
case title
|
||||
case translate
|
||||
case writingsuggestions
|
||||
}
|
||||
Reference in New Issue
Block a user