Node.BaseURI property

The read-only baseURI property of the Node interface returns the absolute base URL of the document containing the node.

The base URL is used to resolve relative URLs when the browser needs to obtain an absolute URL, for example when processing the HTML img element’s src attribute or the xlink:href or href attributes in SVG.

public String BaseURI { get; }

Property Value

The baseURI getter returns this’s node document’s document base URL, serialized.



DOM Standard - defines a platform-neutral model for events, aborting activities, and node trees.DOM Standard (DOM) # dom-node-baseuri.GitHub - repository hosts the DOM Standard.

See Also