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.
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, Inherited = false)]
public sealed class DomNameAttribute : Attribute
{
public string OfficialName { get; set; }
public DomNameAttribute(string officialName)
{
OfficialName = officialName;
}
}
}