diff --git a/src/HtmlAgilityPack.NETStandard1_3/HtmlAgilityPack.NETStandard1_3.csproj b/src/HtmlAgilityPack.NETStandard1_3/HtmlAgilityPack.NETStandard1_3.csproj index 9b8c290b..e1d8922c 100644 --- a/src/HtmlAgilityPack.NETStandard1_3/HtmlAgilityPack.NETStandard1_3.csproj +++ b/src/HtmlAgilityPack.NETStandard1_3/HtmlAgilityPack.NETStandard1_3.csproj @@ -10,7 +10,7 @@ netstandard1.3 HtmlAgilityPack - 1.11.1 + 1.11.24 ZZZ Projects Inc. ZZZ Projects Inc. Html Agility Pack @@ -35,9 +35,6 @@ - - - diff --git a/src/HtmlAgilityPack.NETStandard2_0/HtmlAgilityPack.NETStandard2_0.csproj b/src/HtmlAgilityPack.NETStandard2_0/HtmlAgilityPack.NETStandard2_0.csproj index beffe1f6..9949d13f 100644 --- a/src/HtmlAgilityPack.NETStandard2_0/HtmlAgilityPack.NETStandard2_0.csproj +++ b/src/HtmlAgilityPack.NETStandard2_0/HtmlAgilityPack.NETStandard2_0.csproj @@ -12,7 +12,7 @@ HtmlAgilityPack HtmlAgilityPack HtmlAgilityPack - 1.11.1 + 1.11.24 ZZZ Projects Inc. ZZZ Projects Inc. Html Agility Pack diff --git a/src/HtmlAgilityPack.NetStandard1_6/HtmlAgilityPack.NetStandard1_6.csproj b/src/HtmlAgilityPack.NetStandard1_6/HtmlAgilityPack.NetStandard1_6.csproj index c58441f2..642bc2d5 100644 --- a/src/HtmlAgilityPack.NetStandard1_6/HtmlAgilityPack.NetStandard1_6.csproj +++ b/src/HtmlAgilityPack.NetStandard1_6/HtmlAgilityPack.NetStandard1_6.csproj @@ -12,7 +12,7 @@ True HtmlAgilityPack.snk HtmlAgilityPack - 1.11.1 + 1.11.24 Copyright © ZZZ Projects Inc. ZZZ Projects Inc. Html Agility Pack @@ -33,9 +33,6 @@ - - - diff --git a/src/HtmlAgilityPack.Shared/HtmlNode.cs b/src/HtmlAgilityPack.Shared/HtmlNode.cs index 0e553b9f..aa7c50c2 100644 --- a/src/HtmlAgilityPack.Shared/HtmlNode.cs +++ b/src/HtmlAgilityPack.Shared/HtmlNode.cs @@ -1307,9 +1307,25 @@ public IEnumerable GetAttributes(params string[] attributeNames) public string GetAttributeValue(string name, string def) { #if METRO || NETSTANDARD1_3 || NETSTANDARD1_6 - return GetAttributeValue(name, def); + if (name == null) + { + throw new ArgumentNullException("name"); + } + + if (!HasAttributes) + { + return def; + } + + HtmlAttribute att = Attributes[name]; + if (att == null) + { + return def; + } + + return att.Value; #else - return GetAttributeValue(name, def); + return GetAttributeValue(name, def); #endif }