AngleSharp by Florian Rappl

<PackageReference Include="AngleSharp" Version="0.8.8" />

.NET API 1,176,064 bytes

 HtmlBaseElement

Represents the HTML base element.
using AngleSharp.Dom.Css; using AngleSharp.Html; namespace AngleSharp.Dom.Html { internal sealed class HtmlBaseElement : HtmlElement, IHtmlBaseElement, IHtmlElement, IElement, INode, IEventTarget, IMarkupFormattable, IParentNode, IChildNode, INonDocumentTypeChildNode, IElementCssInlineStyle { public string Href { get { return GetOwnAttribute(AttributeNames.Href); } set { SetOwnAttribute(AttributeNames.Href, value); } } public string Target { get { return GetOwnAttribute(AttributeNames.Target); } set { SetOwnAttribute(AttributeNames.Target, value); } } public HtmlBaseElement(Document owner, string prefix = null) : base(owner, Tags.Base, prefix, NodeFlags.SelfClosing | NodeFlags.Special) { RegisterAttributeObserver(AttributeNames.Href, UpdateUrl); } private void UpdateUrl(string url) { base.Owner.BaseUrl = new Url(base.Owner.DocumentUrl, url ?? string.Empty); } } }