/// <summary>
 /// Raises the <see cref="E:RemovingAttribute" /> event.
 /// </summary>
 /// <param name="e">The <see cref="RemovingAttributeEventArgs"/> instance containing the event data.</param>
 protected virtual void OnRemovingAttribute(RemovingAttributeEventArgs e)
 {
     if (RemovingAttribute != null)
     {
         RemovingAttribute(this, e);
     }
 }
        private void RemoveAttribute(IDomObject tag, KeyValuePair <string, string> attribute)
        {
            var e = new RemovingAttributeEventArgs {
                Attribute = attribute
            };

            OnRemovingAttribute(e);
            if (!e.Cancel)
            {
                tag.RemoveAttribute(attribute.Key);
            }
        }
 private void RemoveAttribute(IDomObject tag, KeyValuePair<string, string> attribute)
 {
     var e = new RemovingAttributeEventArgs { Attribute = attribute };
     OnRemovingAttribute(e);
     if (!e.Cancel) tag.RemoveAttribute(attribute.Key);
 }
 /// <summary>
 /// Raises the <see cref="E:RemovingAttribute" /> event.
 /// </summary>
 /// <param name="e">The <see cref="RemovingAttributeEventArgs"/> instance containing the event data.</param>
 protected virtual void OnRemovingAttribute(RemovingAttributeEventArgs e)
 {
     if (RemovingAttribute != null) RemovingAttribute(this, e);
 }