diff --git a/src/HtmlAgilityPack.Shared/HtmlNode.cs b/src/HtmlAgilityPack.Shared/HtmlNode.cs
index 5eeede9..9ef4ae0 100644
--- a/src/HtmlAgilityPack.Shared/HtmlNode.cs
+++ b/src/HtmlAgilityPack.Shared/HtmlNode.cs
@@ -1481,7 +1481,6 @@ public bool GetAttributeValue(string name, bool def)
/// The name of the attribute to get. May not be null.
/// The default value to return if not found.
/// The value of the attribute if found, the default value if not found.
- [Obsolete("Use GetAttributeValue with an explicit custom parser for AOT compatibility")]
public T GetAttributeValue(string name, T def)
{
if (name == null)