Documentation
¶
Index ¶
- Constants
- type AttributeCategories
- type AttributeConfig
- type Comment
- type Namespace
- type NamespaceConfig
- func (n *NamespaceConfig) CheckValueValidity(name, value string, category AttributeCategories) bool
- func (n *NamespaceConfig) GetAttributeBoolean(name string, category AttributeCategories) bool
- func (n *NamespaceConfig) GetAttributeDefaultValue(name string, category AttributeCategories) string
- func (n *NamespaceConfig) GetTagConfig(name string) (*TagConfig, error)
- type TagConfig
- type TagType
- type WebSpecification
Constants ¶
View Source
const ( SpecificAttributes AttributeCategories = "Specific Attributes" GlobalAttributes = "Global Attributes" AriaAttributes = "Aria Attributes" DocumentActions = "Document Actions" WindowActions = "Window Actions" AnimationAdditionAttributes = "Animation Addition Attributes" AnimationEventAttributes = "Animation Event Attributes" AnimationTargetElementAttributes = "Animation Target Element Attributes" AnimationAttributeTargetAttributes = "Animation Attribute Target Attributes" AnimationTimingAttributes = "Animation Timing Attributes" AnimationValueAttributes = "Animation Value Attributes" ConditionalProcessingAttributes = "Conditional Processing Attributes" CoreAttributes = "Core Attributes" PresentationAttributes = "Presentation Attributes" FilterPrimitiveAttributes = "Filter Primitive Attributes" TransferFunctionAttributes = "Transfer Function Attributes" GlobalEventAttributes = "Global Event Attributes" DocumentElementEventAttributes = "Document Element Event Attributes" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AttributeCategories ¶
type AttributeCategories string
func (AttributeCategories) String ¶
func (a AttributeCategories) String() string
type AttributeConfig ¶
type Comment ¶
type Comment string
func (Comment) BuildComment ¶
BuildComment - this method will create comment for attribute or tag. starts after "TagName/AttributeName - %s", BuildComment
type NamespaceConfig ¶
type NamespaceConfig struct {
Tags []*TagConfig
AttributesCategories map[AttributeCategories][]*AttributeConfig
}
func (*NamespaceConfig) CheckValueValidity ¶
func (n *NamespaceConfig) CheckValueValidity(name, value string, category AttributeCategories) bool
func (*NamespaceConfig) GetAttributeBoolean ¶
func (n *NamespaceConfig) GetAttributeBoolean(name string, category AttributeCategories) bool
func (*NamespaceConfig) GetAttributeDefaultValue ¶
func (n *NamespaceConfig) GetAttributeDefaultValue(name string, category AttributeCategories) string
func (*NamespaceConfig) GetTagConfig ¶
func (n *NamespaceConfig) GetTagConfig(name string) (*TagConfig, error)
type TagConfig ¶
type TagConfig struct {
Name string
TagType TagType
Comment Comment
DocumentationURL string
AttributesCategorySupports map[AttributeCategories][]string
SpecificAttributes []*AttributeConfig
SupportedChildrenTags []string
}
type WebSpecification ¶
type WebSpecification struct {
Version string
Spec map[Namespace]*NamespaceConfig
}
func (*WebSpecification) GetConfig ¶
func (w *WebSpecification) GetConfig(tagType Namespace) *NamespaceConfig
Click to show internal directories.
Click to hide internal directories.