mozilla

Revision 140879 of element.baseURIObject

  • Revision slug: DOM/element.baseURIObject
  • Revision title: element.baseURIObject
  • Revision id: 140879
  • Created:
  • Creator: Brettz9
  • Is current revision? No
  • Comment 1 words added, 1 words removed; page display name changed to 'element.baseURIObject'

Revision Content

{{ Fx_minversion_header("3") }} {{ DomRef() }} {{ Non-standard_header() }}

Summary

baseURIObject returns the {{ Interface("nsIURI") }} object representing the node's URI.

{{ Note("This property exists on all elements (HTML, XUL, SVG, MathML, etc.), but only if the script trying to use it has UniversalXPConnect privileges.") }}

Syntax

uriObj = element.baseURIObject

Notes

This property is read-only; attempting to write to it will throw an exception. In addition, this property may only be accessed from privileged code.

Specification

Not in any specification.

Revision Source

<p>{{ Fx_minversion_header("3") }} {{ DomRef() }} {{ Non-standard_header() }}</p>
<h3 name="Summary">Summary</h3>
<p><code>baseURIObject</code> returns the {{ Interface("nsIURI") }} object representing the node's URI.</p>
<p>{{ Note("This property exists on all elements (HTML, XUL, SVG, MathML, etc.), but only if the script trying to use it has UniversalXPConnect privileges.") }}</p>
<h3 name="Syntax">Syntax</h3>
<pre class="eval"><em>uriObj</em> = element.baseURIObject
</pre>
<h3 name="Notes">Notes</h3>
<p>This property is read-only; attempting to write to it will throw an exception. In addition, this property may only be accessed from privileged code.</p>
<h3 name="Specification">Specification</h3>
<p>Not in any specification.</p>
Revert to this revision