WebMarkupMin.Core.GenericHtmlMinifier.CanRemoveTagWithoutContent C# (CSharp) Метод

CanRemoveTagWithoutContent() приватный статический Метод

Checks whether remove an the tag, that has empty content
private static CanRemoveTagWithoutContent ( WebMarkupMin.Core.Parsers.HtmlTag tag ) : bool
tag WebMarkupMin.Core.Parsers.HtmlTag Tag
Результат bool
        private static bool CanRemoveTagWithoutContent(HtmlTag tag)
        {
            string tagNameInLowercase = tag.NameInLowercase;
            HtmlTagFlags tagFlags = tag.Flags;
            IList<HtmlAttribute> attributes = tag.Attributes;

            return !(tagFlags.HasFlag(HtmlTagFlags.Custom)
                || (tagFlags.HasFlag(HtmlTagFlags.Xml) && tagFlags.HasFlag(HtmlTagFlags.NonIndependent))
                || _unremovableEmptyTags.Contains(tagNameInLowercase)
                || attributes.Any(a => IsCustomAttribute(a)
                    || (_unremovableEmptyTagAttributes.Contains(a.NameInLowercase) && !string.IsNullOrWhiteSpace(a.Value))));
        }