Annotation of html5/spec/the-object-element.html, revision 1.65

1.1       mike        1: <!DOCTYPE html>
                      2: <html lang="en-US-x-Hixie"><head><title>4.8.4 The object element &#8212; HTML5</title><style type="text/css">
                      3:    pre { margin-left: 2em; white-space: pre-wrap; }
                      4:    h2 { margin: 3em 0 1em 0; }
                      5:    h3 { margin: 2.5em 0 1em 0; }
                      6:    h4 { margin: 2.5em 0 0.75em 0; }
                      7:    h5, h6 { margin: 2.5em 0 1em; }
                      8:    h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
                      9:    h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
                     10:    p { margin: 1em 0; }
                     11:    hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
                     12:    dl, dd { margin-top: 0; margin-bottom: 0; }
                     13:    dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
                     14:    dt + dt { margin-top: 0; }
                     15:    dd dt { margin-top: 0.25em; margin-bottom: 0; }
                     16:    dd p { margin-top: 0; }
                     17:    dd dl + p { margin-top: 1em; }
                     18:    dd table + p { margin-top: 1em; }
                     19:    p + * > li, dd li { margin: 1em 0; }
                     20:    dt, dfn { font-weight: bold; font-style: normal; }
                     21:    i, em { font-style: italic; }
                     22:    dt dfn { font-style: italic; }
                     23:    pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
                     24:    pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
                     25:    pre em { font-weight: bolder; font-style: normal; }
                     26:    @media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
                     27:    var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
                     28:    table { border-collapse: collapse; border-style: hidden hidden none hidden; }
                     29:    table thead, table tbody { border-bottom: solid; }
                     30:    table tbody th:first-child { border-left: solid; }
                     31:    table tbody th { text-align: left; }
                     32:    table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
                     33:    blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }
                     34: 
                     35:    .bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
                     36:    .matrix, .matrix td { border: none; text-align: right; }
                     37:    .matrix { margin-left: 2em; }
                     38:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                     39:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                     40:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                     41: 
                     42:    .toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
                     43:    img.extra, p.overview { float: right; }
                     44:    pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; position: relative; }
                     45:    pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
                     46:    pre.idl::before { content: "IDL"; font: bold small sans-serif; padding: 0.5em; background: white; position: absolute; top: 0; margin: -1px 0 0 -4em; width: 1.5em; border: thin solid; border-radius: 0 0 0 0.5em }
                     47:    pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
                     48:    pre.css:first-line { color: #AAAA50; }
                     49:    dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
                     50:    hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
                     51:    dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
                     52:    dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
                     53:    dl.domintro dd p { margin: 0.5em 0; }
                     54:    dl.domintro:before { display: table; margin: -1em -0.5em -0.5em auto; width: auto; content: 'This box is non-normative. Implementation requirements are given below this box.'; color: black; font-style: italic; border: solid 2px; background: white; padding: 0 0.25em; }
                     55:    dl.switch { padding-left: 2em; }
                     56:    dl.switch > dt { text-indent: -1.5em; }
                     57:    dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
                     58:    dl.triple { padding: 0 0 0 1em; }
                     59:    dl.triple dt, dl.triple dd { margin: 0; display: inline }
                     60:    dl.triple dt:after { content: ':'; }
                     61:    dl.triple dd:after { content: '\A'; white-space: pre; }
                     62:    .diff-old { text-decoration: line-through; color: silver; background: transparent; }
                     63:    .diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
                     64:    a .diff-new { border-bottom: 1px blue solid; }
                     65: 
                     66:    h2 { page-break-before: always; }
                     67:    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
                     68:    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
                     69: 
                     70:    p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
                     71:    li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]), { border-bottom: solid #9999CC; }
                     72: 
                     73:    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
                     74:    div.head p { margin: 0; }
                     75:    div.head h1 { margin: 0; }
                     76:    div.head .logo { float: right; margin: 0 1em; }
                     77:    div.head .logo img { border: none } /* remove border from top image */
                     78:    div.head dl { margin: 1em 0; }
                     79:    div.head p.copyright, div.head p.alt { font-size: x-small; font-style: oblique; margin: 0; }
                     80: 
                     81:    body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
                     82:    body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
                     83:    body > .toc > li > * { margin-bottom: 0.5em; }
                     84:    body > .toc > li > * > li > * { margin-bottom: 0.25em; }
                     85:    .toc, .toc li { list-style: none; }
                     86: 
                     87:    .brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
                     88:    .brief li { margin: 0; padding: 0; }
                     89:    .brief li p { margin: 0; padding: 0; }
                     90: 
                     91:    .category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
                     92:    .category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
                     93:    .category-list li { display: inline; }
                     94:    .category-list li:not(:last-child)::after { content: ', '; }
                     95:    .category-list li > span, .category-list li > a { text-transform: lowercase; }
                     96:    .category-list li * { text-transform: none; } /* don't affect <code> nested in <a> */
                     97: 
                     98:    .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
                     99:    .XXX > :first-child { margin-top: 0; }
                    100:    p .XXX { line-height: 3em; }
                    101:    .annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
                    102:    .annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
                    103:    .annotation :link, .annotation :visited { color: inherit; }
                    104:    .annotation :link:hover, .annotation :visited:hover { background: transparent; }
                    105:    .annotation span { border: none ! important; }
                    106:    .note { color: green; background: transparent; font-family: sans-serif; }
                    107:    .warning { color: red; background: transparent; }
                    108:    .note, .warning { font-weight: bolder; font-style: italic; }
                    109:    .note em, .warning em, .note i, .warning i { font-style: normal; }
                    110:    p.note, div.note { padding: 0.5em 2em; }
                    111:    span.note { padding: 0 2em; }
                    112:    .note p:first-child, .warning p:first-child { margin-top: 0; }
                    113:    .note p:last-child, .warning p:last-child { margin-bottom: 0; }
                    114:    .warning:before { font-style: normal; }
                    115:    p.note:before { content: 'Note: '; }
                    116:    p.warning:before { content: '\26A0 Warning! '; }
                    117: 
                    118:    .bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
                    119:    .bookkeeping { font-size: 0.8em; margin: 2em 0; }
                    120:    .bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
                    121:    .bookkeeping dt { margin: 0.5em 2em 0; }
                    122:    .bookkeeping dd { margin: 0 3em 0.5em; }
                    123: 
                    124:    h4 { position: relative; z-index: 3; }
                    125:    h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
                    126:    .element {
                    127:      background: #EEEEFF;
                    128:      color: black;
                    129:      margin: 0 0 1em 0.15em;
                    130:      padding: 0 1em 0.25em 0.75em;
                    131:      border-left: solid #9999FF 0.25em;
                    132:      position: relative;
                    133:      z-index: 1;
                    134:    }
                    135:    .element:before {
                    136:      position: absolute;
                    137:      z-index: 2;
                    138:      top: 0;
                    139:      left: -1.15em;
                    140:      height: 2em;
                    141:      width: 0.9em;
                    142:      background: #EEEEFF;
                    143:      content: ' ';
                    144:      border-style: none none solid solid;
                    145:      border-color: #9999FF;
                    146:      border-width: 0.25em;
                    147:    }
                    148: 
                    149:    .example { display: block; color: #222222; background: #FCFCFC; border-left: double; margin-left: 2em; padding-left: 1em; }
                    150:    td > .example:only-child { margin: 0 0 0 0.1em; }
                    151: 
                    152:    ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
                    153:    ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
                    154:    ul.domTree li li { list-style: none; }
                    155:    ul.domTree li:first-child::before { position: absolute; top: 0; height: 0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
                    156:    ul.domTree li:not(:last-child)::after { position: absolute; top: 0; bottom: -0.6em; left: -0.75em; width: 0.5em; border-style: none none solid solid; content: ''; border-width: 0.1em; }
                    157:    ul.domTree span { font-style: italic; font-family: serif; }
                    158:    ul.domTree .t1 code { color: purple; font-weight: bold; }
                    159:    ul.domTree .t2 { font-style: normal; font-family: monospace; }
                    160:    ul.domTree .t2 .name { color: black; font-weight: bold; }
                    161:    ul.domTree .t2 .value { color: blue; font-weight: normal; }
                    162:    ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
                    163:    ul.domTree .t7 code, .domTree .t8 code { color: green; }
                    164:    ul.domTree .t10 code { color: teal; }
                    165: 
                    166:    body.dfnEnabled dfn { cursor: pointer; }
                    167:    .dfnPanel {
                    168:      display: inline;
                    169:      position: absolute;
                    170:      z-index: 10;
                    171:      height: auto;
                    172:      width: auto;
                    173:      padding: 0.5em 0.75em;
                    174:      font: small sans-serif, Droid Sans Fallback;
                    175:      background: #DDDDDD;
                    176:      color: black;
                    177:      border: outset 0.2em;
                    178:    }
                    179:    .dfnPanel * { margin: 0; padding: 0; font: inherit; text-indent: 0; }
                    180:    .dfnPanel :link, .dfnPanel :visited { color: black; }
                    181:    .dfnPanel p { font-weight: bolder; }
                    182:    .dfnPanel * + p { margin-top: 0.25em; }
                    183:    .dfnPanel li { list-style-position: inside; }
                    184: 
                    185:    #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; }
                    186:    #configUI p { margin: 0.5em 0; padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
                    187:    #configUI p label { display: block; }
                    188:    #configUI #updateUI, #configUI .loginUI { text-align: center; }
                    189:    #configUI input[type=button] { display: block; margin: auto; }
                    190: 
                    191:    fieldset { margin: 1em; padding: 0.5em 1em; }
                    192:    fieldset > legend + * { margin-top: 0; }
                    193:    fieldset > :last-child { margin-bottom: 0; }
                    194:    fieldset p { margin: 0.5em 0; }
                    195: 
                    196:   </style><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"><style type="text/css">
                    197: 
                    198:    .applies thead th > * { display: block; }
                    199:    .applies thead code { display: block; }
                    200:    .applies tbody th { whitespace: nowrap; }
                    201:    .applies td { text-align: center; }
                    202:    .applies .yes { background: yellow; }
                    203: 
                    204:    .matrix, .matrix td { border: hidden; text-align: right; }
                    205:    .matrix { margin-left: 2em; }
                    206: 
                    207:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                    208:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                    209:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                    210: 
                    211:    td.eg { border-width: thin; text-align: center; }
                    212: 
                    213:    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
                    214:    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
                    215:    #table-example-1 caption { padding-bottom: 0.5em; }
                    216:    #table-example-1 thead, #table-example-1 tbody { border: none; }
                    217:    #table-example-1 th, #table-example-1 td { border: solid thin; }
                    218:    #table-example-1 th { font-weight: normal; }
                    219:    #table-example-1 td { border-style: none solid; vertical-align: top; }
                    220:    #table-example-1 th { padding: 0.5em; vertical-align: middle; text-align: center; }
                    221:    #table-example-1 tbody tr:first-child td { padding-top: 0.5em; }
                    222:    #table-example-1 tbody tr:last-child td { padding-bottom: 1.5em; }
                    223:    #table-example-1 tbody td:first-child { padding-left: 2.5em; padding-right: 0; width: 9em; }
                    224:    #table-example-1 tbody td:first-child::after { content: leader(". "); }
                    225:    #table-example-1 tbody td { padding-left: 2em; padding-right: 2em; }
                    226:    #table-example-1 tbody td:first-child + td { width: 10em; }
                    227:    #table-example-1 tbody td:first-child + td ~ td { width: 2.5em; }
                    228:    #table-example-1 tbody td:first-child + td + td + td ~ td { width: 1.25em; }
                    229: 
                    230:    .apple-table-examples { border: none; border-collapse: separate; border-spacing: 1.5em 0em; width: 40em; margin-left: 3em; }
                    231:    .apple-table-examples * { font-family: "Times", serif; }
                    232:    .apple-table-examples td, .apple-table-examples th { border: none; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
                    233:    .apple-table-examples tbody th:first-child { border-left: none; width: 100%; }
                    234:    .apple-table-examples thead th:first-child ~ th { font-size: smaller; font-weight: bolder; border-bottom: solid 2px; text-align: center; }
                    235:    .apple-table-examples tbody th::after, .apple-table-examples tfoot th::after { content: leader(". ") }
                    236:    .apple-table-examples tbody th, .apple-table-examples tfoot th { font: inherit; text-align: left; }
                    237:    .apple-table-examples td { text-align: right; vertical-align: top; }
                    238:    .apple-table-examples.e1 tbody tr:last-child td { border-bottom: solid 1px; }
                    239:    .apple-table-examples.e1 tbody + tbody tr:last-child td { border-bottom: double 3px; }
                    240:    .apple-table-examples.e2 th[scope=row] { padding-left: 1em; }
                    241:    .apple-table-examples sup { line-height: 0; }
                    242: 
                    243:    .details-example img { vertical-align: top; }
                    244: 
                    245:    #base64-table {
                    246:      white-space: nowrap;
                    247:      font-size: 0.6em;
                    248:      column-width: 6em;
                    249:      column-count: 5;
                    250:      column-gap: 1em;
                    251:      -moz-column-width: 6em;
                    252:      -moz-column-count: 5;
                    253:      -moz-column-gap: 1em;
                    254:      -webkit-column-width: 6em;
                    255:      -webkit-column-count: 5;
                    256:      -webkit-column-gap: 1em;
                    257:    }
                    258:    #base64-table thead { display: none; }
                    259:    #base64-table * { border: none; }
                    260:    #base64-table tbody td:first-child:after { content: ':'; }
                    261:    #base64-table tbody td:last-child { text-align: right; }
                    262: 
                    263:    #named-character-references-table {
                    264:      white-space: nowrap;
                    265:      font-size: 0.6em;
                    266:      column-width: 30em;
                    267:      column-gap: 1em;
                    268:      -moz-column-width: 30em;
                    269:      -moz-column-gap: 1em;
                    270:      -webkit-column-width: 30em;
                    271:      -webkit-column-gap: 1em;
                    272:    }
                    273:    #named-character-references-table > table > tbody > tr > td:first-child + td,
                    274:    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
                    275:    #named-character-references-table > table > tbody > tr > td:last-child:hover > span { position: absolute; top: auto; left: auto; margin-left: 0.5em; line-height: 1.2; font-size: 5em; border: outset; padding: 0.25em 0.5em; background: white; width: 1.25em; height: auto; text-align: center; }
                    276:    #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
                    277: 
                    278:    .glyph.control { color: red; }
                    279: 
                    280:    @font-face {
                    281:      font-family: 'Essays1743';
                    282:      src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743.ttf');
                    283:    }
                    284:    @font-face {
                    285:      font-family: 'Essays1743';
                    286:      font-weight: bold;
                    287:      src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743-Bold.ttf');
                    288:    }
                    289:    @font-face {
                    290:      font-family: 'Essays1743';
                    291:      font-style: italic;
                    292:      src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743-Italic.ttf');
                    293:    }
                    294:    @font-face {
                    295:      font-family: 'Essays1743';
                    296:      font-style: italic;
                    297:      font-weight: bold;
                    298:      src: url('http://www.whatwg.org/specs/web-apps/current-work/fonts/Essays1743-BoldItalic.ttf');
                    299:    }
                    300: 
                    301:   </style><link href="data:text/css," id="complete" rel="stylesheet" title="Complete specification"><link href="data:text/css,.impl%20%7B%20display:%20none;%20%7D%0Ahtml%20%7B%20border:%20solid%20yellow;%20%7D%20.domintro:before%20%7B%20display:%20none;%20%7D" id="author" rel="alternate stylesheet" title="Author documentation only"><link href="data:text/css,.impl%20%7B%20background:%20%23FFEEEE;%20%7D%20.domintro:before%20%7B%20background:%20%23FFEEEE;%20%7D" id="highlight" rel="alternate stylesheet" title="Highlight implementation requirements"><script type="text/javascript">
                    302:    function getCookie(name) {
                    303:      var params = location.search.substr(1).split("&");
                    304:      for (var index = 0; index < params.length; index++) {
                    305:        if (params[index] == name)
                    306:          return "1";
                    307:        var data = params[index].split("=");
                    308:        if (data[0] == name)
                    309:          return unescape(data[1]);
                    310:      }
                    311:      var cookies = document.cookie.split("; ");
                    312:      for (var index = 0; index < cookies.length; index++) {
                    313:        var data = cookies[index].split("=");
                    314:        if (data[0] == name)
                    315:          return unescape(data[1]);
                    316:      }
                    317:      return null;
                    318:    }
                    319:   </script>
                    320:   <script src="link-fixup.js"></script>
                    321:   <link href="the-embed-element.html" title="4.8.3 The embed element" rel="prev">
                    322:   <link href="index.html#contents" title="Table of contents" rel="contents">
                    323:   <link href="the-param-element.html" title="4.8.5 The param element" rel="next">
1.22      mike      324:   </head><body onload="fixBrokenLink();" class="split chapter"><div class="head" id="head">
1.1       mike      325:    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
                    326: 
                    327:    <h1>HTML5</h1>
1.65    ! mike      328:    <h2 class="no-num no-toc" id="a-vocabulary-and-associated-apis-for-html-and-xhtml">A vocabulary and associated APIs for HTML and XHTML</h2><p>This is revision 1.5582.</p>
1.1       mike      329: 
1.65    ! mike      330:    <h2 class="no-num no-toc" id="editor-s-draft-11-february-2012">Editor's Draft 11 February 2012</h2>
1.1       mike      331:    </div><nav class="prev_next">
                    332:    <a href="the-embed-element.html">&#8592; 4.8.3 The embed element</a> &#8211;
                    333:    <a href="index.html#contents">Table of contents</a> &#8211;
                    334:    <a href="the-param-element.html">4.8.5 The param element &#8594;</a>
                    335:   </nav>
                    336: 
1.25      mike      337:   <h4 id="the-object-element"><span class="secno">4.8.4 </span>The <dfn><code>object</code></dfn> element</h4><dl class="element"><dt><a href="element-definitions.html#element-dfn-categories" title="element-dfn-categories">Categories</a>:</dt>
1.1       mike      338:    <dd><a href="content-models.html#flow-content">Flow content</a>.</dd>
                    339:    <dd><a href="content-models.html#phrasing-content">Phrasing content</a>.</dd>
                    340:    <dd><a href="content-models.html#embedded-content">Embedded content</a>.</dd>
                    341:    <dd>If the element has a <code title="attr-hyperlink-usemap"><a href="image-maps.html#attr-hyperlink-usemap">usemap</a></code> attribute: <a href="content-models.html#interactive-content">Interactive content</a>.</dd> 
                    342:    <dd><a href="forms.html#category-listed" title="category-listed">Listed</a>,  <a href="forms.html#category-submit" title="category-submit">submittable</a>, <a href="forms.html#form-associated-element">form-associated element</a>.</dd>
                    343:    <dd><a href="content-models.html#palpable-content">Palpable content</a>.</dd>
1.25      mike      344:    <dt><a href="element-definitions.html#element-dfn-contexts" title="element-dfn-contexts">Contexts in which this element can be used</a>:</dt>
1.1       mike      345:    <dd>Where <a href="content-models.html#embedded-content">embedded content</a> is expected.</dd>
1.25      mike      346:    <dt><a href="element-definitions.html#element-dfn-content-model" title="element-dfn-content-model">Content model</a>:</dt>
1.1       mike      347:    <dd>Zero or more <code><a href="the-param-element.html#the-param-element">param</a></code> elements, then, <a href="content-models.html#transparent">transparent</a>.</dd>
1.25      mike      348:    <dt><a href="element-definitions.html#element-dfn-attributes" title="element-dfn-attributes">Content attributes</a>:</dt>
1.1       mike      349:    <dd><a href="global-attributes.html#global-attributes">Global attributes</a></dd>
                    350:    <dd><code title="attr-object-data"><a href="#attr-object-data">data</a></code></dd>
                    351:    <dd><code title="attr-object-type"><a href="#attr-object-type">type</a></code></dd>
                    352:    <dd><code title="attr-object-typemustmatch"><a href="#attr-object-typemustmatch">typemustmatch</a></code></dd>
                    353:    <dd><code title="attr-object-name"><a href="#attr-object-name">name</a></code></dd>
                    354:    <dd><code title="attr-hyperlink-usemap"><a href="image-maps.html#attr-hyperlink-usemap">usemap</a></code></dd>
                    355:    <dd><code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code></dd>
                    356:    <dd><code title="attr-dim-width"><a href="dimension-attributes.html#attr-dim-width">width</a></code></dd>
                    357:    <dd><code title="attr-dim-height"><a href="dimension-attributes.html#attr-dim-height">height</a></code></dd>
1.25      mike      358:    <dt><a href="element-definitions.html#element-dfn-dom" title="element-dfn-dom">DOM interface</a>:</dt>
1.1       mike      359:    <dd>
                    360: <pre class="idl">interface <dfn id="htmlobjectelement">HTMLObjectElement</dfn> : <a href="elements.html#htmlelement">HTMLElement</a> {
                    361:            attribute DOMString <a href="#dom-object-data" title="dom-object-data">data</a>;
                    362:            attribute DOMString <a href="#dom-object-type" title="dom-object-type">type</a>;
                    363:            attribute boolean <a href="#dom-object-typemustmatch" title="dom-object-typeMustMatch">typeMustMatch</a>;
                    364:            attribute DOMString <a href="#dom-object-name" title="dom-object-name">name</a>;
                    365:            attribute DOMString <a href="#dom-object-usemap" title="dom-object-useMap">useMap</a>;
                    366:   readonly attribute <a href="the-form-element.html#htmlformelement">HTMLFormElement</a>? <a href="association-of-controls-and-forms.html#dom-fae-form" title="dom-fae-form">form</a>;
                    367:            attribute DOMString <a href="dimension-attributes.html#dom-dim-width" title="dom-dim-width">width</a>;
                    368:            attribute DOMString <a href="dimension-attributes.html#dom-dim-height" title="dom-dim-height">height</a>;
                    369:   readonly attribute Document? <a href="#dom-object-contentdocument" title="dom-object-contentDocument">contentDocument</a>;
                    370:   readonly attribute <a href="browsers.html#windowproxy">WindowProxy</a>? <a href="#dom-object-contentwindow" title="dom-object-contentWindow">contentWindow</a>;
                    371: 
                    372:   readonly attribute boolean <a href="constraints.html#dom-cva-willvalidate" title="dom-cva-willValidate">willValidate</a>;
                    373:   readonly attribute <a href="constraints.html#validitystate">ValidityState</a> <a href="constraints.html#dom-cva-validity" title="dom-cva-validity">validity</a>;
                    374:   readonly attribute DOMString <a href="constraints.html#dom-cva-validationmessage" title="dom-cva-validationMessage">validationMessage</a>;
                    375:   boolean <a href="constraints.html#dom-cva-checkvalidatity" title="dom-cva-checkValidatity">checkValidity</a>();
                    376:   void <a href="constraints.html#dom-cva-setcustomvalidity" title="dom-cva-setCustomValidity">setCustomValidity</a>(DOMString error);
1.34      mike      377: 
                    378:   <a href="#dom-object-caller" title="dom-object-caller">legacycaller</a> any (any... arguments);
1.1       mike      379: };</pre>
                    380:     <div class="impl">
                    381:     <p>Depending on the type of content instantiated by the
                    382:     <code><a href="#the-object-element">object</a></code> element, the node also supports other
                    383:     interfaces.</p>
                    384:     </div>
                    385:    </dd>
                    386:   </dl><p>The <code><a href="#the-object-element">object</a></code> element can represent an external
                    387:   resource, which, depending on the type of the resource, will either
                    388:   be treated as an image, as a <a href="browsers.html#nested-browsing-context">nested browsing context</a>,
                    389:   or as an external resource to be processed by a
                    390:   <a href="infrastructure.html#plugin">plugin</a>.</p><p>The <dfn id="attr-object-data" title="attr-object-data"><code>data</code></dfn>
                    391:   attribute, if present, specifies the address of the resource. If
                    392:   present, the attribute must be a <a href="urls.html#valid-non-empty-url-potentially-surrounded-by-spaces">valid non-empty
                    393:   URL potentially surrounded by spaces</a>.</p><p class="warning">Authors who reference resources from other <a href="origin-0.html#origin" title="origin">origins</a> that they do not trust are urged to
                    394:   use the <code title="attr-object-typemustmatch"><a href="#attr-object-typemustmatch">typemustmatch</a></code>
                    395:   attribute defined below. Without that attribute, it is possible in
                    396:   certain cases for an attacker on the remote host to use the plugin
                    397:   mechanism to run arbitrary scripts, even if the author has used
                    398:   features such as the Flash "allowScriptAccess" parameter.</p><p>The <dfn id="attr-object-type" title="attr-object-type"><code>type</code></dfn>
                    399:   attribute, if present, specifies the type of the resource. If
                    400:   present, the attribute must be a <a href="infrastructure.html#valid-mime-type">valid MIME type</a>.</p><p>At least one of either the <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute or the <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute must be present.</p><p>The <dfn id="attr-object-typemustmatch" title="attr-object-typemustmatch"><code>typemustmatch</code></dfn>
                    401:   attribute is a <a href="common-microsyntaxes.html#boolean-attribute">boolean attribute</a> whose presence
                    402:   indicates that the resource specified by the <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute is only to be used if
                    403:   the value of the <code title="attr-object-type"><a href="#attr-object-type">type</a></code>
                    404:   attribute and the <a href="urls.html#content-type">Content-Type</a> of the aforementioned
                    405:   resource match.</p><p>The <code title="attr-object-typemustmatch"><a href="#attr-object-typemustmatch">typemustmatch</a></code>
                    406:   attribute must not be specified unless both the <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute and the <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute are present.</p><p>The <dfn id="attr-object-name" title="attr-object-name"><code>name</code></dfn>
                    407:   attribute, if present, must be a <a href="browsers.html#valid-browsing-context-name">valid browsing context
                    408:   name</a>. The given value is used to name the <a href="browsers.html#nested-browsing-context">nested
                    409:   browsing context</a>, if applicable.</p><div class="impl">
                    410: 
                    411:   <p>When the element is created, when it is popped off the
                    412:   <a href="parsing.html#stack-of-open-elements">stack of open elements</a> of an <a href="parsing.html#html-parser">HTML parser</a>
                    413:   or <a href="the-xhtml-syntax.html#xml-parser">XML parser</a>, and subsequently whenever the element is
                    414:   <a href="infrastructure.html#insert-an-element-into-a-document" title="insert an element into a document">inserted into a
                    415:   document</a> or <a href="infrastructure.html#remove-an-element-from-a-document" title="remove an element from a
                    416:   document">removed from a document</a>; and whenever the element's
                    417:   <code><a href="dom.html#document">Document</a></code> changes whether it is <a href="browsers.html#fully-active">fully
                    418:   active</a>; and whenever an ancestor <code><a href="#the-object-element">object</a></code> element
                    419:   changes to or from showing its <a href="content-models.html#fallback-content">fallback content</a>; and
                    420:   whenever the element's <code title="attr-object-classid"><a href="obsolete.html#attr-object-classid">classid</a></code> attribute is set,
                    421:   changed, or removed; and, when its <code title="attr-object-classid"><a href="obsolete.html#attr-object-classid">classid</a></code> attribute is not present,
                    422:   whenever its <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute is
                    423:   set, changed, or removed; and, when neither its <code title="attr-object-classid"><a href="obsolete.html#attr-object-classid">classid</a></code> attribute nor its <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute are present, whenever
                    424:   its <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute is set,
                    425:   changed, or removed: the user agent must <a href="webappapis.html#queue-a-task">queue a task</a>
                    426:   to run the following steps to (re)determine what the
                    427:   <code><a href="#the-object-element">object</a></code> element represents. The <a href="webappapis.html#task-source">task source</a>
                    428:   for this <a href="webappapis.html#concept-task" title="concept-task">task</a> is the <a href="webappapis.html#dom-manipulation-task-source">DOM
                    429:   manipulation task source</a>.</p> 
1.4       mike      430: 
1.1       mike      431:   <ol><li>
                    432: 
                    433:     <p>If the user has indicated a preference that this
                    434:     <code><a href="#the-object-element">object</a></code> element's <a href="content-models.html#fallback-content">fallback content</a> be
                    435:     shown instead of the element's usual behavior, then jump to the
                    436:     last step in the overall set of steps (fallback).</p>
                    437: 
                    438:     <p class="note">For example, a user could ask for the element's
                    439:     <a href="content-models.html#fallback-content">fallback content</a> to be shown because that content
                    440:     uses a format that the user finds more accessible.</p>
                    441: 
                    442:    </li>
                    443: 
                    444:    <li>
                    445: 
                    446:     <p>If the element has an ancestor <a href="media-elements.html#media-element">media element</a>, or
                    447:     has an ancestor <code><a href="#the-object-element">object</a></code> element that is <em>not</em>
                    448:     showing its <a href="content-models.html#fallback-content">fallback content</a>, or if the element is
                    449:     not <a href="infrastructure.html#in-a-document" title="in a document">in a <code>Document</code></a>
                    450:     with a <a href="browsers.html#browsing-context">browsing context</a>, or if the element's
                    451:     <code><a href="dom.html#document">Document</a></code> is not <a href="browsers.html#fully-active">fully active</a>, or if the
                    452:     element is still in the <a href="parsing.html#stack-of-open-elements">stack of open elements</a> of an
                    453:     <a href="parsing.html#html-parser">HTML parser</a> or <a href="the-xhtml-syntax.html#xml-parser">XML parser</a>, then jump to
                    454:     the last step in the overall set of steps (fallback).</p>
                    455: 
                    456:    </li>
                    457: 
                    458:    <li>
                    459: 
                    460:     
1.4       mike      461: 
1.1       mike      462:     <p>If the <code title="attr-object-classid"><a href="obsolete.html#attr-object-classid">classid</a></code>
                    463:     attribute is present, and has a value that isn't the empty string,
                    464:     then: if the user agent can find a <a href="infrastructure.html#plugin">plugin</a> suitable
                    465:     according to the value of the <code title="attr-object-classid"><a href="obsolete.html#attr-object-classid">classid</a></code> attribute, and either
                    466:     <a href="#sandboxPluginObject">plugins aren't being sandboxed</a>
                    467:     or that <a href="infrastructure.html#plugin">plugin</a> can be <a href="infrastructure.html#concept-plugin-secure" title="concept-plugin-secure">secured</a>, then that
                    468:     <a href="infrastructure.html#plugin">plugin</a> <a href="#object-plugin">should be used</a>,
                    469:     and the value of the <code title="attr-object-data"><a href="#attr-object-data">data</a></code>
                    470:     attribute, if any, should be passed to the <a href="infrastructure.html#plugin">plugin</a>. If
                    471:     no suitable <a href="infrastructure.html#plugin">plugin</a> can be found, or if the
                    472:     <a href="infrastructure.html#plugin">plugin</a> reports an error, jump to the last step in the
                    473:     overall set of steps (fallback).</p>
                    474: 
                    475:     
1.4       mike      476: 
1.1       mike      477:    </li>
                    478: 
                    479:    
1.4       mike      480: 
1.1       mike      481:    <li><p>If the <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute
                    482:    is present and its value is not the empty string, then:</p>
                    483: 
                    484:     <ol><li><p>If the <code title="attr-object-type"><a href="#attr-object-type">type</a></code>
                    485:      attribute is present and its value is not a type that the user
                    486:      agent supports, and is not a type that the user agent can find a
                    487:      <a href="infrastructure.html#plugin">plugin</a> for, then the user agent may jump to the last
                    488:      step in the overall set of steps (fallback) without fetching the
                    489:      content to examine its real type.</p></li>
                    490: 
                    491:      <li><p><a href="urls.html#resolve-a-url" title="resolve a url">Resolve</a> the
                    492:      <a href="urls.html#url">URL</a> specified by the <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute, relative to the
                    493:      element.</p></li>
                    494: 
                    495:      <li><p>If that failed, <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named
                    496:      <code title="event-error">error</code> at the element, then jump
                    497:      to the last step in the overall set of steps (fallback).</p></li>
                    498: 
                    499:      <li>
                    500: 
                    501:       <p><a href="urls.html#fetch">Fetch</a> the resulting <a href="urls.html#absolute-url">absolute URL</a>,
                    502:       from the element's <a href="browsers.html#browsing-context-scope-origin">browsing context scope origin</a> if
                    503:       it has one.</p>
                    504: 
                    505:        <p>Fetching the resource
                    506:       must <a href="the-end.html#delay-the-load-event">delay the load event</a> of the element's document
                    507:       until the <a href="webappapis.html#concept-task" title="concept-task">task</a> that is <a href="webappapis.html#queue-a-task" title="queue a task">queued</a> by the <a href="webappapis.html#networking-task-source">networking task
                    508:       source</a> once the resource has been <a href="urls.html#fetch" title="fetch">fetched</a> (defined next) has been run.</p>
                    509: 
                    510:       <p>For the purposes of the <a href="offline.html#application-cache">application cache</a>
                    511:       networking model, this <a href="urls.html#fetch">fetch</a> operation is not for a
                    512:       <a href="browsers.html#child-browsing-context">child browsing context</a> (though it might end up
                    513:       being used for one after all, as defined below).</p>
                    514: 
                    515:      </li>
                    516: 
                    517:      <li><p>If the resource is not yet available (e.g. because the
                    518:      resource was not available in the cache, so that loading the
                    519:      resource required making a request over the network), then jump
                    520:      to the last step in the overall set of steps (fallback). The
                    521:      <a href="webappapis.html#concept-task" title="concept-task">task</a> that is <a href="webappapis.html#queue-a-task" title="queue
                    522:      a task">queued</a> by the <a href="webappapis.html#networking-task-source">networking task source</a>
                    523:      once the resource is available must restart this algorithm from
                    524:      this step. Resources can load incrementally; user agents may opt
                    525:      to consider a resource "available" whenever enough data has been
                    526:      obtained to begin processing the resource.</p></li>
                    527: 
                    528:      <li><p>If the load failed (e.g. there was an HTTP 404 error,
                    529:      there was a DNS error), <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named
                    530:      <code title="event-error">error</code> at the element, then jump
                    531:      to the last step in the overall set of steps (fallback).</p></li>
                    532: 
                    533:      <li id="object-type-detection">
                    534: 
                    535:       <p>Determine the <var title="">resource type</var>, as follows:</p>
                    536: 
                    537: 
1.4       mike      538: 
1.1       mike      539:       <ol><li>
                    540: 
                    541:         <p>Let the <var title="">resource type</var> be unknown.</p>
                    542: 
                    543:        </li>
                    544: 
                    545:        <li>
                    546: 
                    547:         <p>If the <code><a href="#the-object-element">object</a></code> element has a <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute and a <code title="attr-object-typemustmatch"><a href="#attr-object-typemustmatch">typemustmatch</a></code>
                    548:         attribute, and the resource has <a href="urls.html#content-type" title="Content-Type">associated Content-Type metadata</a>,
                    549:         and the type specified in <a href="urls.html#content-type" title="Content-Type">the
                    550:         resource's Content-Type metadata</a> is an <a href="infrastructure.html#ascii-case-insensitive">ASCII
                    551:         case-insensitive</a> match for the value of the element's
                    552:         <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute, then let
                    553:         <var title="">resource type</var> be that type and jump to the
                    554:         step below labeled <i>handler</i>.</p>
                    555: 
                    556:         
1.4       mike      557: 
1.1       mike      558:        </li>
                    559: 
                    560:        <li>
                    561: 
                    562:         <p>If the <code><a href="#the-object-element">object</a></code> element has a <code title="attr-object-typemustmatch"><a href="#attr-object-typemustmatch">typemustmatch</a></code>
                    563:         attribute, jump to the step below labeled <i>handler</i>.</p>
                    564: 
                    565:        </li>
                    566: 
                    567:        <li>
                    568: 
                    569:         
                    570: 
                    571:         <p>If the user agent is configured to strictly obey
                    572:         Content-Type headers for this resource, and the resource has
                    573:         <a href="urls.html#content-type" title="Content-Type">associated Content-Type
                    574:         metadata</a>, then let the <var title="">resource
                    575:         type</var> be the type specified in <a href="urls.html#content-type" title="Content-Type">the resource's Content-Type
                    576:         metadata</a>, and jump to the step below labeled
                    577:         <i>handler</i>.</p>
                    578: 
                    579:         <p class="warning">This can introduce a vulnerability, wherein
                    580:         a site is trying to embed a resource that uses a particular
                    581:         plugin, but the remote site overrides that and instead
                    582:         furnishes the user agent with a resource that triggers a
                    583:         different plugin with different security characteristics. </p>
                    584: 
                    585:        </li>
                    586: 
                    587:        <li>
                    588: 
                    589:         <p>If there is a <code title="attr-object-type"><a href="#attr-object-type">type</a></code>
                    590:         attribute present on the <code><a href="#the-object-element">object</a></code> element, and that
                    591:         attribute's value is not a type that the user agent supports,
                    592:         but it <em>is</em> a type that a <a href="infrastructure.html#plugin">plugin</a> supports,
                    593:         then let the <var title="">resource type</var> be the type
                    594:         specified in that <code title="attr-object-type"><a href="#attr-object-type">type</a></code>
                    595:         attribute, and jump to the step below labeled
                    596:         <i>handler</i>.</p>
                    597: 
                    598:        </li>
                    599: 
                    600:        <li>
                    601: 
                    602:         <p>Run the approprate set of steps from the following
                    603:         list:</p>
                    604: 
                    605:         <dl class="switch"><dt>The resource has <a href="urls.html#content-type" title="Content-Type">associated
                    606:          Content-Type metadata</a></dt>
                    607: 
                    608:          <dd>
                    609: 
                    610:           <ol><li>
                    611: 
                    612:             <p>Let <var title="">binary</var> be false.</p>
                    613: 
                    614:            </li>
                    615: 
                    616:            <li>
                    617: 
                    618:             <p>If the type specified in <a href="urls.html#content-type" title="Content-Type">the
                    619:             resource's Content-Type metadata</a> is
                    620:             "<code>text/plain</code>", and the result of applying the
                    621:             <a href="urls.html#content-type-sniffing:-text-or-binary" title="Content-Type sniffing: text or binary">rules
                    622:             for distinguishing if a resource is text or binary</a>
                    623:             to the resource is that the resource is not
                    624:             <code>text/plain</code>, then set <var title="">binary</var> to true.</p>
                    625: 
                    626:            </li>
                    627: 
                    628:            <li>
                    629: 
                    630:             <p>If the type specified in <a href="urls.html#content-type" title="Content-Type">the
                    631:             resource's Content-Type metadata</a> is
                    632:             "<code>application/octet-stream</code>", then set <var title="">binary</var> to true.</p>
                    633: 
                    634:            </li>
                    635: 
                    636:            <li>
                    637: 
                    638:             <p>If <var title="">binary</var> is false, then let the
                    639:             <var title="">resource type</var> be the type specified in
                    640:             <a href="urls.html#content-type" title="Content-Type">the resource's Content-Type
                    641:             metadata</a>, and jump to the step below labeled
                    642:             <i>handler</i>.</p>
                    643: 
                    644:            </li>
                    645: 
                    646:            <li>
                    647: 
                    648:             <p>If there is a <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute present on
                    649:             the <code><a href="#the-object-element">object</a></code> element, and its value is not
                    650:             <code>application/octet-stream</code>, then run the
                    651:             following steps:</p>
                    652: 
                    653:             <ol><li>
                    654: 
                    655:               <p>If the attribute's value is a type that a <a href="infrastructure.html#plugin">plugin</a> supports, or
                    656:               the attribute's value is a type that starts with "<code>image/</code>" that is not also an <a href="infrastructure.html#xml-mime-type">XML MIME type</a>,
                    657:               then let the <var title="">resource type</var> be the type specified in that <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute.</p>
                    658: 
                    659:              </li>
                    660: 
                    661:              <li>
                    662: 
                    663:               <p>Jump to the step below labeled <i>handler</i>.</p>
                    664: 
                    665:              </li>
                    666: 
                    667:             </ol></li>
                    668: 
                    669:           </ol></dd>
                    670: 
                    671:          <dt>The resource does not have <a href="urls.html#content-type" title="Content-Type">associated Content-Type
                    672:          metadata</a></dt>
                    673: 
                    674:          <dd>
                    675: 
                    676:           <ol><li>
                    677: 
                    678:             <p>If there is a <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute present on
                    679:             the <code><a href="#the-object-element">object</a></code> element, then let the <var title="">tentative type</var> be the type specified in that
                    680:             <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute.</p>
                    681: 
                    682:             <p>Otherwise, let <var title="">tentative type</var> be the
                    683:             <a href="urls.html#content-type-sniffing-0" title="content-type sniffing">sniffed type of the
                    684:             resource</a>.</p>
                    685: 
                    686:            </li>
                    687: 
                    688:            <li>
                    689: 
                    690:             <p>If <var title="">tentative type</var> is <em>not</em>
                    691:             <code>application/octet-stream</code>, then let <var title="">resource type</var> be <var title="">tentative
                    692:             type</var> and jump to the step below labeled
                    693:             <i>handler</i>.</p>
                    694: 
                    695:            </li>
                    696: 
                    697:           </ol></dd>
                    698: 
                    699:         </dl></li>
                    700: 
                    701:        <li>
                    702: 
                    703:         
1.4       mike      704: 
1.1       mike      705:         <p>If the <a href="urls.html#url-path" title="url-path">&lt;path&gt;</a> component
                    706:         of the <a href="urls.html#url">URL</a> of the specified resource (after any
                    707:         redirects) matches a pattern that a <a href="infrastructure.html#plugin">plugin</a>
                    708:         supports, then let <var title="">resource type</var> be the
                    709:         type that that plugin can handle.</p>
                    710: 
                    711:         <p class="example">For example, a plugin might say that it can
                    712:         handle resources with <a href="urls.html#url-path" title="url-path">&lt;path&gt;</a> components that end with
                    713:         the four character string "<code title="">.swf</code>".</p>
                    714: 
                    715:         
                    716:         
                    717: 
                    718:        </li>
                    719: 
                    720:       </ol><p class="note">It is possible for this step to finish, or for
                    721:       one of the substeps above to jump straight to the next step,
                    722:       with <var title="">resource type</var> still being unknown. In
                    723:       both cases, the next step will trigger fallback.</p>
                    724: 
                    725:      </li>
                    726: 
                    727:      <li><p><i>Handler</i>: Handle the content as given by the first
                    728:      of the following cases that matches:</p>
                    729: 
                    730:       <dl class="switch"><dt>If the <var title="">resource type</var> is not a type that
                    731:        the user agent supports, but it <em>is</em> a type that a
                    732:        <a href="infrastructure.html#plugin">plugin</a> supports</dt>
                    733: 
                    734:        <dd>
                    735: 
                    736:         <p>If <a href="#sandboxPluginObject">plugins are being
                    737:         sandboxed</a> and the plugin that supports <var title="">resource type</var> cannot be <a href="infrastructure.html#concept-plugin-secure" title="concept-plugin-secure">secured</a>, jump to the last
                    738:         step in the overall set of steps (fallback).</p>
                    739: 
                    740:         <p>Otherwise, the user agent should <a href="#object-plugin">use the plugin that supports <var title="">resource type</var></a> and pass the content of the
                    741:         resource to that <a href="infrastructure.html#plugin">plugin</a>. If the
                    742:         <a href="infrastructure.html#plugin">plugin</a> reports an error, then jump to the last
                    743:         step in the overall set of steps (fallback).</p>
                    744: 
                    745:        </dd>
                    746: 
                    747: 
                    748:        <dt>If the <var title="">resource type</var> is an <a href="infrastructure.html#xml-mime-type">XML MIME
                    749:        type</a>, or
                    750:        
                    751:        if the <var title="">resource type</var> does not start with
                    752:        "<code>image/</code>"</dt>
                    753: 
                    754:        <dd>
                    755: 
                    756:         <p>The <code><a href="#the-object-element">object</a></code> element must be associated with a
                    757:         newly created <a href="browsers.html#nested-browsing-context">nested browsing context</a>, if it does
                    758:         not already have one.</p>
                    759: 
                    760:         <p>If the <a href="urls.html#url">URL</a> of the given resource is not
                    761:         <code><a href="urls.html#about:blank">about:blank</a></code>, the element's <a href="browsers.html#nested-browsing-context">nested browsing
                    762:         context</a> must then be <a href="history.html#navigate" title="navigate">navigated</a> to that
                    763:         resource, with <a href="history.html#replacement-enabled">replacement enabled</a>, and with the
                    764:         <code><a href="#the-object-element">object</a></code> element's document's <a href="browsers.html#browsing-context">browsing
                    765:         context</a> as the <a href="history.html#source-browsing-context">source browsing context</a>.
                    766:         (The <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute of
                    767:         the <code><a href="#the-object-element">object</a></code> element doesn't get updated if the
                    768:         browsing context gets further navigated to other
                    769:         locations.)</p>
                    770: 
                    771:         <p>If the <a href="urls.html#url">URL</a> of the given resource <em>is</em>
                    772:         <code><a href="urls.html#about:blank">about:blank</a></code>, then, instead, the user agent must
                    773:         <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a>
                    774:         named <code title="event-load">load</code> at the
                    775:         <code><a href="#the-object-element">object</a></code> element. <span class="note">No <code title="event-load">load</code> event is fired at the
                    776:         <code><a href="urls.html#about:blank">about:blank</a></code> document itself.</span></p>
                    777: 
                    778:         <p>The <code><a href="#the-object-element">object</a></code> element <a href="rendering.html#represents">represents</a> the
                    779:         <a href="browsers.html#nested-browsing-context">nested browsing context</a>.</p>
                    780: 
                    781:         <p>If the <code title="attr-object-name"><a href="#attr-object-name">name</a></code> attribute
                    782:         is present, the <a href="browsers.html#browsing-context-name">browsing context name</a> must be set
                    783:         to the value of this attribute; otherwise, the <a href="browsers.html#browsing-context-name">browsing
                    784:         context name</a> must be set to the empty string.</p>
                    785: 
                    786:         <p class="note">In certain situations, e.g. if the resource
                    787:         was <a href="urls.html#fetch" title="fetch">fetched</a> from an
                    788:         <a href="offline.html#application-cache">application cache</a> but it is an HTML file with a
                    789:         <code title="attr-html-manifest"><a href="the-html-element.html#attr-html-manifest">manifest</a></code> attribute
                    790:         that points to a different <a href="offline.html#concept-appcache-manifest" title="concept-appcache-manifest">application cache
                    791:         manifest</a>, the <a href="history.html#navigate" title="navigate">navigation</a>
                    792:         of the <a href="browsers.html#browsing-context">browsing context</a> will be restarted so as
                    793:         to load the resource afresh from the network or a different
                    794:         <a href="offline.html#application-cache">application cache</a>. Even if the resource is then
                    795:         found to have a different type, it is still used as part of a
                    796:         <a href="browsers.html#nested-browsing-context">nested browsing context</a>: only the
                    797:         <a href="history.html#navigate">navigate</a> algorithm is restarted, not this
                    798:         <code><a href="#the-object-element">object</a></code> algorithm.</p>
                    799: 
                    800:         
                    801: 
                    802:        </dd>
                    803: 
                    804: 
                    805:        <dt>If the <var title="">resource type</var> starts with
                    806:        "<code>image/</code>", and support for images has not been
                    807:        disabled</dt>
                    808: 
                    809:        <dd>
                    810: 
                    811:         <p>Apply the <a href="urls.html#content-type-sniffing:-image" title="content-type sniffing: image">image
                    812:         sniffing</a> rules to determine the type of the image.</p>
                    813: 
                    814:         <p>The <code><a href="#the-object-element">object</a></code> element <a href="rendering.html#represents">represents</a> the
                    815:         specified image. The image is not a <a href="browsers.html#nested-browsing-context">nested browsing
                    816:         context</a>.</p>
                    817: 
                    818:         <p>If the image cannot be rendered, e.g. because it is
                    819:         malformed or in an unsupported format, jump to the last step
                    820:         in the overall set of steps (fallback).</p>
                    821: 
                    822:        </dd>
                    823: 
                    824: 
                    825:        <dt>Otherwise</dt>
                    826: 
                    827:        <dd>
                    828: 
                    829:         <p>The given <var title="">resource type</var> is not
                    830:         supported. Jump to the last step in the overall set of steps
                    831:         (fallback).</p>
                    832: 
                    833:         <p class="note">If the previous step ended with the <var title="">resource type</var> being unknown, this is the case
                    834:         that is triggered.</p>
                    835: 
                    836:        </dd>
                    837: 
                    838:       </dl></li>
                    839: 
                    840:      <li><p>The element's contents are not part of what the
                    841:      <code><a href="#the-object-element">object</a></code> element represents.</p>
                    842: 
                    843:      </li><li>
                    844: 
                    845:       <p>Once the resource is completely loaded, <a href="webappapis.html#queue-a-task">queue a
                    846:       task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-load">load</code> at the element.</p>
                    847: 
                    848:       <p>The <a href="webappapis.html#task-source">task source</a> for this task is the <a href="webappapis.html#dom-manipulation-task-source">DOM manipulation task
                    849:       source</a>.</p>
                    850: 
                    851:      </li>
                    852: 
                    853:     </ol></li>
                    854: 
                    855:    <li><p>If the <code title="attr-object-data"><a href="#attr-object-data">data</a></code> attribute
                    856:    is absent but the <code title="attr-object-type"><a href="#attr-object-type">type</a></code>
                    857:    attribute is present, and the user agent can find a
                    858:    <a href="infrastructure.html#plugin">plugin</a> suitable according to the value of the <code title="attr-object-type"><a href="#attr-object-type">type</a></code> attribute, and either <a href="#sandboxPluginObject">plugins aren't being sandboxed</a> or
                    859:    the <a href="infrastructure.html#plugin">plugin</a> can be <a href="infrastructure.html#concept-plugin-secure" title="concept-plugin-secure">secured</a>, then that
                    860:    <a href="infrastructure.html#plugin">plugin</a> <a href="#object-plugin">should be used</a>. If
                    861:    these conditions cannot be met, or if the <a href="infrastructure.html#plugin">plugin</a>
                    862:    reports an error, jump to the next step (fallback).</p></li>
                    863: 
                    864:    <li><p>(Fallback.) The <code><a href="#the-object-element">object</a></code> element
                    865:    <a href="rendering.html#represents">represents</a> the element's children, ignoring any
                    866:    leading <code><a href="the-param-element.html#the-param-element">param</a></code> element children. This is the element's
                    867:    <a href="content-models.html#fallback-content">fallback content</a>. If the element has an instantiated
                    868:    <a href="infrastructure.html#plugin">plugin</a>, then unload it.</p></li>
                    869: 
                    870:   </ol><p id="object-plugin">When the algorithm above instantiates a
                    871:   <a href="infrastructure.html#plugin">plugin</a>, the user agent should pass to the
                    872:   <a href="infrastructure.html#plugin">plugin</a> used the names and values of all the attributes
                    873:   on the element, in the order they were added to the element, with
                    874:   the attributes added by the parser being ordered in source order,
                    875:   followed by a parameter named "PARAM" whose value is null,
                    876:   followed by all the names and values of <a href="the-param-element.html#concept-param-parameter" title="concept-param-parameter">parameters</a> given by
                    877:   <code><a href="the-param-element.html#the-param-element">param</a></code> elements that are children of the
                    878:   <code><a href="#the-object-element">object</a></code> element, in <a href="infrastructure.html#tree-order">tree order</a>. If the
                    879:   <a href="infrastructure.html#plugin">plugin</a> supports a scriptable interface, the
                    880:   <code><a href="#htmlobjectelement">HTMLObjectElement</a></code> object representing the element
                    881:   should expose that interface. The <code><a href="#the-object-element">object</a></code> element
                    882:   <a href="rendering.html#represents">represents</a> the <a href="infrastructure.html#plugin">plugin</a>. The
                    883:   <a href="infrastructure.html#plugin">plugin</a> is not a nested <a href="browsers.html#browsing-context">browsing
                    884:   context</a>.</p>
                    885: 
                    886:   <p id="sandboxPluginObject">Plugins are considered sandboxed for the
                    887:   purpose of an <code><a href="#the-object-element">object</a></code> element if the <a href="the-iframe-element.html#sandboxed-plugins-browsing-context-flag">sandboxed
                    888:   plugins browsing context flag</a> was set on the
                    889:   <code><a href="#the-object-element">object</a></code> element's <code><a href="dom.html#document">Document</a></code>'s <a href="browsers.html#browsing-context">browsing
                    890:   context</a> when the <code><a href="dom.html#document">Document</a></code> was created.</p>
                    891: 
                    892:   <p class="note">The above algorithm is independent of CSS properties
                    893:   (including 'display', 'overflow', and 'visibility'). For example, it
                    894:   runs even if the element is hidden with a 'display:none' CSS style,
                    895:   and does not run <em>again</em> if the element's visibility
                    896:   changes.</p>
                    897: 
                    898:   <p>Due to the algorithm above, the contents of <code><a href="#the-object-element">object</a></code>
                    899:   elements act as <a href="content-models.html#fallback-content">fallback content</a>, used only when
                    900:   referenced resources can't be shown (e.g. because it returned a 404
                    901:   error). This allows multiple <code><a href="#the-object-element">object</a></code> elements to be
                    902:   nested inside each other, targeting multiple user agents with
                    903:   different capabilities, with the user agent picking the first one it
                    904:   supports.</p>
                    905: 
                    906:   <p>Whenever the <code title="attr-object-name"><a href="#attr-object-name">name</a></code> attribute
                    907:   is set, if the <code><a href="#the-object-element">object</a></code> element has a nested
                    908:   <a href="browsers.html#browsing-context">browsing context</a>, its <a href="browsers.html#browsing-context-name" title="browsing context
                    909:   name">name</a> must be changed to the new value. If the attribute
                    910:   is removed, if the <code><a href="#the-object-element">object</a></code> element has a <a href="browsers.html#browsing-context">browsing
                    911:   context</a>, the <a href="browsers.html#browsing-context-name">browsing context name</a> must be set
                    912:   to the empty string.</p>
                    913: 
                    914:   </div><p>The <code title="attr-hyperlink-usemap"><a href="image-maps.html#attr-hyperlink-usemap">usemap</a></code> attribute,
                    915:   if present while the <code><a href="#the-object-element">object</a></code> element represents an
                    916:   image, can indicate that the object has an associated <a href="image-maps.html#image-map">image
                    917:   map</a>. <span class="impl">The attribute must be ignored if the
                    918:   <code><a href="#the-object-element">object</a></code> element doesn't represent an image.</span></p><p>The <code title="attr-fae-form"><a href="association-of-controls-and-forms.html#attr-fae-form">form</a></code> attribute is used to
                    919:   explicitly associate the <code><a href="#the-object-element">object</a></code> element with its
                    920:   <a href="association-of-controls-and-forms.html#form-owner">form owner</a>.</p><div class="impl">
                    921: 
                    922:   <p><strong>Constraint validation</strong>: <code><a href="#the-object-element">object</a></code>
                    923:   elements are always <a href="constraints.html#barred-from-constraint-validation">barred from constraint
                    924:   validation</a>.</p>
                    925: 
                    926:   </div><p>The <code><a href="#the-object-element">object</a></code> element supports <a href="dimension-attributes.html#dimension-attributes">dimension
                    927:   attributes</a>.</p><div class="impl">
                    928: 
                    929:   <p>The IDL attributes <dfn id="dom-object-data" title="dom-object-data"><code>data</code></dfn>, <dfn id="dom-object-type" title="dom-object-type"><code>type</code></dfn> and <dfn id="dom-object-name" title="dom-object-name"><code>name</code></dfn> each must
                    930:   <a href="common-dom-interfaces.html#reflect">reflect</a> the respective content attributes of the same
                    931:   name. The <dfn id="dom-object-typemustmatch" title="dom-object-typeMustMatch"><code>typeMustMatch</code></dfn>
                    932:   IDL attribute must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-object-typemustmatch"><a href="#attr-object-typemustmatch">typemustmatch</a></code> content
                    933:   attribute. The <dfn id="dom-object-usemap" title="dom-object-useMap"><code>useMap</code></dfn> IDL attribute
                    934:   must <a href="common-dom-interfaces.html#reflect">reflect</a> the <code title="attr-object-usemap">usemap</code> content attribute.</p>
                    935: 
                    936:   <p>The <dfn id="dom-object-contentdocument" title="dom-object-contentDocument"><code>contentDocument</code></dfn>
                    937:   IDL attribute must return the <code><a href="dom.html#document">Document</a></code> object of the
                    938:   <a href="browsers.html#active-document">active document</a> of the <code><a href="#the-object-element">object</a></code> element's
                    939:   <a href="browsers.html#nested-browsing-context">nested browsing context</a>, if it has one; otherwise, it
                    940:   must return null.</p>
                    941: 
                    942:   <p>The <dfn id="dom-object-contentwindow" title="dom-object-contentWindow"><code>contentWindow</code></dfn>
                    943:   IDL attribute must return the <code><a href="browsers.html#windowproxy">WindowProxy</a></code> object of the
                    944:   <code><a href="#the-object-element">object</a></code> element's <a href="browsers.html#nested-browsing-context">nested browsing context</a>,
                    945:   if it has one; otherwise, it must return null.</p>
                    946: 
                    947:   <p>The <code title="dom-cva-willValidate"><a href="constraints.html#dom-cva-willvalidate">willValidate</a></code>, <code title="dom-cva-validity"><a href="constraints.html#dom-cva-validity">validity</a></code>, and <code title="dom-cva-validationMessage"><a href="constraints.html#dom-cva-validationmessage">validationMessage</a></code>
                    948:   attributes, and the <code title="dom-cva-checkValidatity"><a href="constraints.html#dom-cva-checkvalidatity">checkValidity()</a></code> and <code title="dom-cva-setCustomValidity"><a href="constraints.html#dom-cva-setcustomvalidity">setCustomValidity()</a></code>
                    949:   methods, are part of the <a href="constraints.html#the-constraint-validation-api">constraint validation API</a>. The
                    950:   <code title="dom-fae-form"><a href="association-of-controls-and-forms.html#dom-fae-form">form</a></code> IDL attribute is part of the
                    951:   element's forms API.</p>
                    952: 
1.34      mike      953:   <p>All <code><a href="#the-object-element">object</a></code> elements have a <dfn id="dom-object-caller" title="dom-object-caller">legacy caller operation</dfn>. If the
                    954:   <code><a href="#the-object-element">object</a></code> element has an instantiated <a href="infrastructure.html#plugin">plugin</a>
                    955:   that supports a scriptable interface that defines a legacy caller
                    956:   operation, then that must be the behavior of the object's legacy
                    957:   caller operation. Otherwise, the object's legacy caller operation
                    958:   must be to throw a <code><a href="infrastructure.html#notsupportederror">NotSupportedError</a></code> exception.</p>
                    959: 
1.1       mike      960:   </div><div class="example">
                    961: 
                    962:    <p>In the following example, a Java applet is embedded in a page
                    963:    using the <code><a href="#the-object-element">object</a></code> element. (Generally speaking, it is
                    964:    better to avoid using applets like these and instead use native
                    965:    JavaScript and HTML to provide the functionality, since that way
                    966:    the application will work on all Web browsers without requiring a
                    967:    third-party plugin. Many devices, especially embedded devices, do
                    968:    not support third-party technologies like Java.)</p>
                    969: 
                    970:    <pre>&lt;figure&gt;
                    971:  &lt;object type="application/x-java-applet"&gt;
                    972:   &lt;param name="code" value="MyJavaClass"&gt;
                    973:   &lt;p&gt;You do not have Java available, or it is disabled.&lt;/p&gt;
                    974:  &lt;/object&gt;
                    975:  &lt;figcaption&gt;My Java Clock&lt;/figcaption&gt;
                    976: &lt;/figure&gt;</pre>
                    977: 
                    978:   </div><div class="example">
                    979: 
                    980:    <p>In this example, an HTML page is embedded in another using the
                    981:    <code><a href="#the-object-element">object</a></code> element.</p>
                    982: 
                    983:    <pre>&lt;figure&gt;
                    984:  &lt;object data="clock.html"&gt;&lt;/object&gt;
                    985:  &lt;figcaption&gt;My HTML Clock&lt;/figcaption&gt;
                    986: &lt;/figure&gt;</pre>
                    987: 
                    988:   </div><div class="example">
                    989: 
                    990:    <p>The following example shows how a plugin can be used in HTML (in
                    991:    this case the Flash plugin, to show a video file). Fallback is
                    992:    provided for users who do not have Flash enabled, in this case
                    993:    using the <code><a href="the-video-element.html#the-video-element">video</a></code> element to show the video for those
                    994:    using user agents that support <code><a href="the-video-element.html#the-video-element">video</a></code>, and finally
                    995:    providing a link to the video for those who have neither Flash nor
                    996:    a <code><a href="the-video-element.html#the-video-element">video</a></code>-capable browser.</p>
                    997: 
                    998:    <pre>&lt;p&gt;Look at my video:
                    999:  &lt;object type="application/x-shockwave-flash"&gt;
                   1000:   &lt;param name=movie value="http://video.example.com/library/watch.swf"&gt;
                   1001:   &lt;param name=allowfullscreen value=true&gt;
                   1002:   &lt;param name=flashvars value="http://video.example.com/vids/315981"&gt;
                   1003:   &lt;video controls src="http://video.example.com/vids/315981"&gt;
                   1004:    &lt;a href="http://video.example.com/vids/315981"&gt;View video&lt;/a&gt;.
                   1005:   &lt;/video&gt;
                   1006:  &lt;/object&gt;
                   1007: &lt;/p&gt;</pre>
                   1008: 
                   1009:   </div></body></html>

Webmaster