mozilla

Compare Revisions

HTMLBodyElement

Change Revisions

Revision 389493:

Revision 389493 by teoli on

Revision 389495:

Revision 389495 by teoli on

Title:
HTMLBodyElement
HTMLBodyElement
Slug:
DOM/HTMLBodyElement
DOM/HTMLBodyElement
Tags:
"Gecko DOM Reference", "DOM", "NeedsTechnicalReview"
"Gecko DOM Reference", "DOM", "NeedsTechnicalReview"
Content:

Revision 389493
Revision 389495
n8      {{ DomRef() }}n8      {{DomRef}}
n10    <h2 id="HTML_body_element_interface">n
11      HTML body element interface
12    </h2>
n14      DOM body elements expose the <a class="external" href="httpn11      The <strong><code>HTMLBodyElement</code></strong>&nbsp; int
>://www.w3.org/TR/html5/sections.html#the-body-element" rel="exter>erface provides special properties (beyond those of the regular {
>nal nofollow" target="_blank" title="http://www.w3.org/TR/html5/s>{ domxref("HTMLelement") }} interface they also inherit) for mani
>ections.html#the-body-element">HTMLBodyElement</a> (or {{ HTMLVer>pulating body elements.
>sionInline("4") }} <a class="external" href="http://www.w3.org/TR 
>/DOM-Level-2-HTML/html.html#ID-48250443" rel="external nofollow"  
>target="_blank" title="http://www.w3.org/TR/DOM-Level-2-HTML/html 
>.html#ID-48250443"><code>HTMLBodyElement</code></a>) interface, w 
>hich provides special properties (beyond the regular {{ domxref(" 
>element") }} object interface they also have available to them by 
> inheritance) for manipulating body elements. 
nn289    <h2 id="Specifications">
290      Specifications
291    </h2>
292    <table class="standard-table">
293      <tbody>
294        <tr>
295          <th scope="col">
296            Specification
297          </th>
298          <th scope="col">
299            Status
300          </th>
301          <th scope="col">
302            Comment
303          </th>
304        </tr>
305        <tr>
306          <td>
307            {{SpecName('HTML WHATWG', "sections.html#the-body-ele
 >ment", "HTMLBodyElement")}}
308          </td>
309          <td>
310            {{Spec2('HTML WHATWG')}}
311          </td>
312          <td>
313            Technically the event-related attributes,<code>onafte
 >rprint</code>, <code>onbeforeprint</code>, <code>onbeforeunload</
 >code>, <code>onblur</code>, <code>onerror</code>, <code>onfocus</
 >code>, <code>onhashchange</code>, <code>onload</code>, <code>onme
 >ssage</code>, <code>onoffline</code>, <code>ononline</code>, <cod
 >e>onpopstate</code>, <code>onresize</code>, <code>onstorage</code
 >>, and <code>onunload</code>, have been moving to the {{domxref("
 >WindowEventHandlers")}} interface, and <code>HTMLBodyElement</cod
 >e> implements this interface.
314          </td>
315        </tr>
316        <tr>
317          <td>
318            {{SpecName('HTML5 W3C', "sections.html#the-body-eleme
 >nt", "HTMLBodyElement")}}
319          </td>
320          <td>
321            {{Spec2('HTML5 W3C')}}
322          </td>
323          <td>
324            The following attributes are now obsolete: <code>aLin
 >k</code>, <code>bgColor</code>, <code>background</code>, <code>li
 >nk</code>, <code>text</code>, and <code>vLink</code>.<br>
325            The following attributes have been added: <code>onaft
 >erprint</code>, <code>onbeforeprint</code>, <code>onbeforeunload<
 >/code>, <code>onblur</code>, <code>onerror</code>, <code>onfocus<
 >/code>, <code>onhashchange</code>, <code>onload</code>, <code>onm
 >essage</code>, <code>onoffline</code>, <code>ononline</code>, <co
 >de>onpopstate</code>, <code>onresize</code>, <code>onstorage</cod
 >e>, and <code>onunload</code>.
326          </td>
327        </tr>
328        <tr>
329          <td>
330            {{SpecName('DOM2 HTML', 'html.html#ID-ID-62018039', '
 >HTMLBodyElement')}}
331          </td>
332          <td>
333            {{Spec2('DOM2 HTML')}}
334          </td>
335          <td>
336            No change from {{SpecName("DOM1")}}.
337          </td>
338        </tr>
339        <tr>
340          <td>
341            {{SpecName('DOM1', 'level-one-html.html#ID-62018039',
 > 'HTMLBodyElement')}}
342          </td>
343          <td>
344            {{Spec2('DOM1')}}
345          </td>
346          <td>
347            Initial definition.
348          </td>
349        </tr>
350      </tbody>
351    </table>
352    <h2 id="Browser_compatibility">
353      Browser compatibility
354    </h2>
355    <p>
356      {{CompatibilityTable}}
357    </p>
358    <div id="compat-desktop">
359      <table class="compat-table">
360        <tbody>
361          <tr>
362            <th>
363              Feature
364            </th>
365            <th>
366              Chrome
367            </th>
368            <th>
369              Firefox (Gecko)
370            </th>
371            <th>
372              Internet Explorer
373            </th>
374            <th>
375              Opera
376            </th>
377            <th>
378              Safari (WebKit)
379            </th>
380          </tr>
381          <tr>
382            <td>
383              Basic support
384            </td>
385            <td>
386              {{CompatVersionUnknown}}
387            </td>
388            <td>
389              {{CompatGeckoDesktop(1.0)}}
390            </td>
391            <td>
392              {{CompatVersionUnknown}}
393            </td>
394            <td>
395              {{CompatVersionUnknown}}
396            </td>
397            <td>
398              {{CompatVersionUnknown}}
399            </td>
400          </tr>
401          <tr>
402            <td>
403              <code>onXYZ</code> event handlers
404            </td>
405            <td>
406              {{CompatVersionUnknown}}
407            </td>
408            <td>
409              {{CompatVersionUnknown}}
410            </td>
411            <td>
412              {{CompatUnknown}}
413            </td>
414            <td>
415              {{CompatUnknown}}
416            </td>
417            <td>
418              {{CompatUnknown}}
419            </td>
420          </tr>
421        </tbody>
422      </table>
423    </div>
424    <div id="compat-mobile">
425      <table class="compat-table">
426        <tbody>
427          <tr>
428            <th>
429              Feature
430            </th>
431            <th>
432              Android
433            </th>
434            <th>
435              Firefox Mobile (Gecko)
436            </th>
437            <th>
438              IE Phone
439            </th>
440            <th>
441              Opera Mobile
442            </th>
443            <th>
444              Safari Mobile
445            </th>
446          </tr>
447          <tr>
448            <td>
449              Basic support
450            </td>
451            <td>
452              {{CompatVersionUnknown}}
453            </td>
454            <td>
455              {{CompatGeckoMobile(1.0)}}
456            </td>
457            <td>
458              {{CompatVersionUnknown}}
459            </td>
460            <td>
461              {{CompatVersionUnknown}}
462            </td>
463            <td>
464              {{CompatVersionUnknown}}
465            </td>
466          </tr>
467          <tr>
468            <td>
469              <code>onXYZ</code> event handlers
470            </td>
471            <td>
472              {{CompatVersionUnknown}}
473            </td>
474            <td>
475              {{CompatVersionUnknown}}
476            </td>
477            <td>
478              {{CompatUnknown}}
479            </td>
480            <td>
481              {{CompatUnknown}}
482            </td>
483            <td>
484              {{CompatUnknown}}
485            </td>
486          </tr>
487        </tbody>
488      </table>
489    </div>
t296      <li>{{ HTMLElement("body") }} HTML&nbsp;elementt494      <li>HTML element implementing this interface: {{ HTMLElemen
 >t("body") }}

Back to History