Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 850089 of HTMLPictureElement

  • Revision slug: Web/API/HTMLPictureElement
  • Revision title: HTMLPictureElement
  • Revision id: 850089
  • Created:
  • Creator: Sebastianz
  • Is current revision? Yes
  • Comment Moved browser-specific info into note below the compatibility table to allow the compat data scraper to parse the page

Revision Content

{{APIRef("HTML DOM")}}{{SeeCompatTable}}

The HTMLPictureElement interface represents a {{HTMLElement("picture")}} HTML element. It doesn't implement specific properties or methods.

Properties

No specific property, but inherits properties from its parent, {{domxref("HTMLElement")}}.

Methods

No specific method, but inherits methods from its parent, {{domxref("HTMLElement")}}.

Specifications

Specification Status Comment
{{SpecName('HTML WHATWG', "edits.html#the-picture-element", "HTMLPictureElement")}} {{Spec2('HTML WHATWG')}} Initial definition

Browser compatibility

{{CompatibilityTable}}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 38 {{CompatGeckoDesktop(33)}}[1] {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}
Feature Android Firefox Mobile (Gecko) IE Phone Opera Mobile Safari Mobile
Basic support {{CompatUnknown}} {{CompatGeckoMobile(33)}}[1] {{CompatUnknown}} {{CompatUnknown}} {{CompatUnknown}}

[1] Gecko implements this behind the dom.image.picture.enabled preference, defaulting to false.

See also

  • The {{HTMLElement("picture")}} HTML element that implements it.
  • The {{domxref("HTMLImageElement")}}, {{domxref("HTMLSourceElement")}} often used in conjunction with a {{HTMLElement("picture")}} element.

Revision Source

<div>{{APIRef("HTML DOM")}}{{SeeCompatTable}}</div>

<p>The <code><strong>HTMLPictureElement</strong></code> interface represents a {{HTMLElement("picture")}} HTML element. It doesn't implement specific properties or methods.</p>

<h2 id="Properties">Properties</h2>

<p><em>No specific property, but inherits properties from its parent, {{domxref("HTMLElement")}}.</em></p>

<h2 id="Methods">Methods</h2>

<p><em>No specific method, but inherits methods from its parent, {{domxref("HTMLElement")}}.</em></p>

<h2 id="Specifications">Specifications</h2>

<table class="standard-table">
 <tbody>
  <tr>
   <th scope="col">Specification</th>
   <th scope="col">Status</th>
   <th scope="col">Comment</th>
  </tr>
  <tr>
   <td>{{SpecName('HTML WHATWG', "edits.html#the-picture-element", "HTMLPictureElement")}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>Initial definition</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility">Browser compatibility</h2>

<p>{{CompatibilityTable}}</p>

<div id="compat-desktop">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Chrome</th>
   <th>Firefox (Gecko)</th>
   <th>Internet Explorer</th>
   <th>Opera</th>
   <th>Safari (WebKit)</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>38</td>
   <td>{{CompatGeckoDesktop(33)}}<sup>[1]</sup></td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<div id="compat-mobile">
<table class="compat-table">
 <tbody>
  <tr>
   <th>Feature</th>
   <th>Android</th>
   <th>Firefox Mobile (Gecko)</th>
   <th>IE Phone</th>
   <th>Opera Mobile</th>
   <th>Safari Mobile</th>
  </tr>
  <tr>
   <td>Basic support</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatGeckoMobile(33)}}<sup>[1]</sup></td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
   <td>{{CompatUnknown}}</td>
  </tr>
 </tbody>
</table>
</div>

<p>[1] Gecko implements this behind the <code>dom.image.picture.enabled</code> preference, defaulting to <code>false</code>.</p>

<h2 id="See_also">See also</h2>

<ul>
 <li>The {{HTMLElement("picture")}} HTML element that implements it.</li>
 <li>The {{domxref("HTMLImageElement")}}, {{domxref("HTMLSourceElement")}} often used in conjunction with a {{HTMLElement("picture")}} element.</li>
</ul>
Revert to this revision