DomNameAttribute
This attribute decorates official DOM objects as specified by the W3C. You could
use it to detect all DOM types or get the correct spelling (PascalCase to camelCase).
Multiple usages are allowed and should be checked.
using System;
namespace AngleSharp.Attributes
{
[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Enum | AttributeTargets.Method | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = true)]
public sealed class DomNameAttribute : Attribute
{
public string OfficialName { get; set; }
internal DomNameAttribute(string officialName)
{
OfficialName = officialName;
}
}
}