Annotation of html5/spec/edits-and-lists.html, revision 1.199

1.88      mike        1: <!DOCTYPE html>
1.198     sruby       2: <html lang="en-US-x-Hixie"><head><meta charset="utf-8"><title>4.7.5 Edits and lists &#8212; HTML5</title><style type="text/css">
                      3: 
                      4:    .applies thead th > * { display: block; }
                      5:    .applies thead code { display: block; }
                      6:    .applies tbody th { white-space: nowrap; }
                      7:    .applies td { text-align: center; }
                      8:    .applies .yes { background: yellow; }
                      9: 
                     10:    .matrix, .matrix td { border: hidden; text-align: right; }
                     11:    .matrix { margin-left: 2em; }
                     12: 
                     13:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                     14:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                     15:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                     16: 
                     17:    td.eg { border-width: thin; text-align: center; }
                     18: 
                     19:    #table-example-1 { border: solid thin; border-collapse: collapse; margin-left: 3em; }
                     20:    #table-example-1 * { font-family: "Essays1743", serif; line-height: 1.01em; }
                     21:    #table-example-1 caption { padding-bottom: 0.5em; }
                     22:    #table-example-1 thead, #table-example-1 tbody { border: none; }
                     23:    #table-example-1 th, #table-example-1 td { border: solid thin; }
                     24:    #table-example-1 th { font-weight: normal; }
                     25:    #table-example-1 td { border-style: none solid; vertical-align: top; }
                     26:    #table-example-1 th { padding: 0.5em; vertical-align: middle; text-align: center; }
                     27:    #table-example-1 tbody tr:first-child td { padding-top: 0.5em; }
                     28:    #table-example-1 tbody tr:last-child td { padding-bottom: 1.5em; }
                     29:    #table-example-1 tbody td:first-child { padding-left: 2.5em; padding-right: 0; width: 9em; }
                     30:    #table-example-1 tbody td:first-child::after { content: leader(". "); }
                     31:    #table-example-1 tbody td { padding-left: 2em; padding-right: 2em; }
                     32:    #table-example-1 tbody td:first-child + td { width: 10em; }
                     33:    #table-example-1 tbody td:first-child + td ~ td { width: 2.5em; }
                     34:    #table-example-1 tbody td:first-child + td + td + td ~ td { width: 1.25em; }
                     35: 
                     36:    .apple-table-examples { border: none; border-collapse: separate; border-spacing: 1.5em 0em; width: 40em; margin-left: 3em; }
                     37:    .apple-table-examples * { font-family: "Times", serif; }
                     38:    .apple-table-examples td, .apple-table-examples th { border: none; white-space: nowrap; padding-top: 0; padding-bottom: 0; }
                     39:    .apple-table-examples tbody th:first-child { border-left: none; width: 100%; }
                     40:    .apple-table-examples thead th:first-child ~ th { font-size: smaller; font-weight: bolder; border-bottom: solid 2px; text-align: center; }
                     41:    .apple-table-examples tbody th::after, .apple-table-examples tfoot th::after { content: leader(". ") }
                     42:    .apple-table-examples tbody th, .apple-table-examples tfoot th { font: inherit; text-align: left; }
                     43:    .apple-table-examples td { text-align: right; vertical-align: top; }
                     44:    .apple-table-examples.e1 tbody tr:last-child td { border-bottom: solid 1px; }
                     45:    .apple-table-examples.e1 tbody + tbody tr:last-child td { border-bottom: double 3px; }
                     46:    .apple-table-examples.e2 th[scope=row] { padding-left: 1em; }
                     47:    .apple-table-examples sup { line-height: 0; }
                     48: 
                     49:    .details-example img { vertical-align: top; }
                     50: 
                     51:    #base64-table {
                     52:      white-space: nowrap;
                     53:      font-size: 0.6em;
                     54:      column-width: 6em;
                     55:      column-count: 5;
                     56:      column-gap: 1em;
                     57:      -moz-column-width: 6em;
                     58:      -moz-column-count: 5;
                     59:      -moz-column-gap: 1em;
                     60:      -webkit-column-width: 6em;
                     61:      -webkit-column-count: 5;
                     62:      -webkit-column-gap: 1em;
                     63:    }
                     64:    #base64-table thead { display: none; }
                     65:    #base64-table * { border: none; }
                     66:    #base64-table tbody td:first-child:after { content: ':'; }
                     67:    #base64-table tbody td:last-child { text-align: right; }
                     68: 
                     69:    #named-character-references-table {
                     70:      white-space: nowrap;
                     71:      font-size: 0.6em;
                     72:      column-width: 30em;
                     73:      column-gap: 1em;
                     74:      -moz-column-width: 30em;
                     75:      -moz-column-gap: 1em;
                     76:      -webkit-column-width: 30em;
                     77:      -webkit-column-gap: 1em;
                     78:    }
                     79:    #named-character-references-table > table > tbody > tr > td:first-child + td,
                     80:    #named-character-references-table > table > tbody > tr > td:last-child { text-align: center; }
                     81:    #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; }
                     82:    #named-character-references-table > table > tbody > tr#entity-CounterClockwiseContourIntegral > td:first-child { font-size: 0.5em; }
                     83: 
                     84:    .glyph.control { color: red; }
                     85: 
                     86:    @font-face {
                     87:      font-family: 'Essays1743';
                     88:      src: url('../fonts/Essays1743.ttf');
                     89:    }
                     90:    @font-face {
                     91:      font-family: 'Essays1743';
                     92:      font-weight: bold;
                     93:      src: url('../fonts/Essays1743-Bold.ttf');
                     94:    }
                     95:    @font-face {
                     96:      font-family: 'Essays1743';
                     97:      font-style: italic;
                     98:      src: url('../fonts/Essays1743-Italic.ttf');
                     99:    }
                    100:    @font-face {
                    101:      font-family: 'Essays1743';
                    102:      font-style: italic;
                    103:      font-weight: bold;
                    104:      src: url('../fonts/Essays1743-BoldItalic.ttf');
                    105:    }
                    106: 
                    107:   </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"><style type="text/css">
1.1       mike      108:    pre { margin-left: 2em; white-space: pre-wrap; }
                    109:    h2 { margin: 3em 0 1em 0; }
                    110:    h3 { margin: 2.5em 0 1em 0; }
                    111:    h4 { margin: 2.5em 0 0.75em 0; }
                    112:    h5, h6 { margin: 2.5em 0 1em; }
                    113:    h1 + h2, h1 + h2 + h2 { margin: 0.75em 0 0.75em; }
                    114:    h2 + h3, h3 + h4, h4 + h5, h5 + h6 { margin-top: 0.5em; }
                    115:    p { margin: 1em 0; }
                    116:    hr:not(.top) { display: block; background: none; border: none; padding: 0; margin: 2em 0; height: auto; }
                    117:    dl, dd { margin-top: 0; margin-bottom: 0; }
                    118:    dt { margin-top: 0.75em; margin-bottom: 0.25em; clear: left; }
                    119:    dt + dt { margin-top: 0; }
                    120:    dd dt { margin-top: 0.25em; margin-bottom: 0; }
                    121:    dd p { margin-top: 0; }
                    122:    dd dl + p { margin-top: 1em; }
                    123:    dd table + p { margin-top: 1em; }
                    124:    p + * > li, dd li { margin: 1em 0; }
                    125:    dt, dfn { font-weight: bold; font-style: normal; }
                    126:    i, em { font-style: italic; }
                    127:    dt dfn { font-style: italic; }
                    128:    pre, code { font-size: inherit; font-family: monospace; font-variant: normal; }
                    129:    pre strong { color: black; font: inherit; font-weight: bold; background: yellow; }
                    130:    pre em { font-weight: bolder; font-style: normal; }
                    131:    @media screen { code { color: orangered; } code :link, code :visited { color: inherit; } }
                    132:    var sub { vertical-align: bottom; font-size: smaller; position: relative; top: 0.1em; }
                    133:    table { border-collapse: collapse; border-style: hidden hidden none hidden; }
                    134:    table thead, table tbody { border-bottom: solid; }
                    135:    table tbody th:first-child { border-left: solid; }
                    136:    table tbody th { text-align: left; }
                    137:    table td, table th { border-left: solid; border-right: solid; border-bottom: solid thin; vertical-align: top; padding: 0.2em; }
                    138:    blockquote { margin: 0 0 0 2em; border: 0; padding: 0; font-style: italic; }
                    139: 
                    140:    .bad, .bad *:not(.XXX) { color: gray; border-color: gray; background: transparent; }
                    141:    .matrix, .matrix td { border: none; text-align: right; }
                    142:    .matrix { margin-left: 2em; }
                    143:    .dice-example { border-collapse: collapse; border-style: hidden solid solid hidden; border-width: thin; margin-left: 3em; }
                    144:    .dice-example caption { width: 30em; font-size: smaller; font-style: italic; padding: 0.75em 0; text-align: left; }
                    145:    .dice-example td, .dice-example th { border: solid thin; width: 1.35em; height: 1.05em; text-align: center; padding: 0; }
                    146: 
                    147:    .toc dfn, h1 dfn, h2 dfn, h3 dfn, h4 dfn, h5 dfn, h6 dfn { font: inherit; }
                    148:    img.extra, p.overview { float: right; }
                    149:    pre.idl { border: solid thin; background: #EEEEEE; color: black; padding: 0.5em 1em; position: relative; }
                    150:    pre.idl :link, pre.idl :visited { color: inherit; background: transparent; }
                    151:    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 }
                    152:    pre.css { border: solid thin; background: #FFFFEE; color: black; padding: 0.5em 1em; }
                    153:    pre.css:first-line { color: #AAAA50; }
                    154:    dl.domintro { color: green; margin: 2em 0 2em 2em; padding: 0.5em 1em; border: none; background: #DDFFDD; }
                    155:    hr + dl.domintro, div.impl + dl.domintro { margin-top: 2.5em; margin-bottom: 1.5em; }
                    156:    dl.domintro dt, dl.domintro dt * { color: black; text-decoration: none; }
                    157:    dl.domintro dd { margin: 0.5em 0 1em 2em; padding: 0; }
                    158:    dl.domintro dd p { margin: 0.5em 0; }
                    159:    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; }
                    160:    dl.switch { padding-left: 2em; }
                    161:    dl.switch > dt { text-indent: -1.5em; }
                    162:    dl.switch > dt:before { content: '\21AA'; padding: 0 0.5em 0 0; display: inline-block; width: 1em; text-align: right; line-height: 0.5em; }
                    163:    dl.triple { padding: 0 0 0 1em; }
                    164:    dl.triple dt, dl.triple dd { margin: 0; display: inline }
                    165:    dl.triple dt:after { content: ':'; }
                    166:    dl.triple dd:after { content: '\A'; white-space: pre; }
                    167:    .diff-old { text-decoration: line-through; color: silver; background: transparent; }
                    168:    .diff-chg, .diff-new { text-decoration: underline; color: green; background: transparent; }
                    169:    a .diff-new { border-bottom: 1px blue solid; }
                    170: 
1.180     sruby     171:    figure.diagrams { border: double black; background: white; padding: 1em; }
                    172:    figure.diagrams img { display: block; margin: 1em auto; } 
                    173: 
1.1       mike      174:    h2 { page-break-before: always; }
                    175:    h1, h2, h3, h4, h5, h6 { page-break-after: avoid; }
                    176:    h1 + h2, hr + h2.no-toc { page-break-before: auto; }
                    177: 
                    178:    p  > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]),
1.198     sruby     179:    li > span:not([title=""]):not([class="XXX"]):not([class="impl"]):not([class="note"]) { border-bottom: solid #9999CC; }
1.1       mike      180: 
                    181:    div.head { margin: 0 0 1em; padding: 1em 0 0 0; }
                    182:    div.head p { margin: 0; }
                    183:    div.head h1 { margin: 0; }
                    184:    div.head .logo { float: right; margin: 0 1em; }
                    185:    div.head .logo img { border: none } /* remove border from top image */
                    186:    div.head dl { margin: 1em 0; }
                    187:    div.head p.copyright, div.head p.alt { font-size: x-small; font-style: oblique; margin: 0; }
                    188: 
                    189:    body > .toc > li { margin-top: 1em; margin-bottom: 1em; }
                    190:    body > .toc.brief > li { margin-top: 0.35em; margin-bottom: 0.35em; }
                    191:    body > .toc > li > * { margin-bottom: 0.5em; }
                    192:    body > .toc > li > * > li > * { margin-bottom: 0.25em; }
                    193:    .toc, .toc li { list-style: none; }
                    194: 
                    195:    .brief { margin-top: 1em; margin-bottom: 1em; line-height: 1.1; }
                    196:    .brief li { margin: 0; padding: 0; }
                    197:    .brief li p { margin: 0; padding: 0; }
                    198: 
                    199:    .category-list { margin-top: -0.75em; margin-bottom: 1em; line-height: 1.5; }
                    200:    .category-list::before { content: '\21D2\A0'; font-size: 1.2em; font-weight: 900; }
                    201:    .category-list li { display: inline; }
                    202:    .category-list li:not(:last-child)::after { content: ', '; }
                    203:    .category-list li > span, .category-list li > a { text-transform: lowercase; }
                    204:    .category-list li * { text-transform: none; } /* don't affect <code> nested in <a> */
                    205: 
                    206:    .XXX { color: #E50000; background: white; border: solid red; padding: 0.5em; margin: 1em 0; }
                    207:    .XXX > :first-child { margin-top: 0; }
                    208:    p .XXX { line-height: 3em; }
                    209:    .annotation { border: solid thin black; background: #0C479D; color: white; position: relative; margin: 8px 0 20px 0; }
                    210:    .annotation:before { position: absolute; left: 0; top: 0; width: 100%; height: 100%; margin: 6px -6px -6px 6px; background: #333333; z-index: -1; content: ''; }
                    211:    .annotation :link, .annotation :visited { color: inherit; }
                    212:    .annotation :link:hover, .annotation :visited:hover { background: transparent; }
                    213:    .annotation span { border: none ! important; }
                    214:    .note { color: green; background: transparent; font-family: sans-serif; }
                    215:    .warning { color: red; background: transparent; }
                    216:    .note, .warning { font-weight: bolder; font-style: italic; }
                    217:    .note em, .warning em, .note i, .warning i { font-style: normal; }
                    218:    p.note, div.note { padding: 0.5em 2em; }
                    219:    span.note { padding: 0 2em; }
                    220:    .note p:first-child, .warning p:first-child { margin-top: 0; }
                    221:    .note p:last-child, .warning p:last-child { margin-bottom: 0; }
                    222:    .warning:before { font-style: normal; }
                    223:    p.note:before { content: 'Note: '; }
                    224:    p.warning:before { content: '\26A0 Warning! '; }
                    225: 
                    226:    .bookkeeping:before { display: block; content: 'Bookkeeping details'; font-weight: bolder; font-style: italic; }
                    227:    .bookkeeping { font-size: 0.8em; margin: 2em 0; }
                    228:    .bookkeeping p { margin: 0.5em 2em; display: list-item; list-style: square; }
                    229:    .bookkeeping dt { margin: 0.5em 2em 0; }
                    230:    .bookkeeping dd { margin: 0 3em 0.5em; }
                    231: 
                    232:    h4 { position: relative; z-index: 3; }
                    233:    h4 + .element, h4 + div + .element { margin-top: -2.5em; padding-top: 2em; }
                    234:    .element {
                    235:      background: #EEEEFF;
                    236:      color: black;
                    237:      margin: 0 0 1em 0.15em;
                    238:      padding: 0 1em 0.25em 0.75em;
                    239:      border-left: solid #9999FF 0.25em;
                    240:      position: relative;
                    241:      z-index: 1;
                    242:    }
                    243:    .element:before {
                    244:      position: absolute;
                    245:      z-index: 2;
                    246:      top: 0;
                    247:      left: -1.15em;
                    248:      height: 2em;
                    249:      width: 0.9em;
                    250:      background: #EEEEFF;
                    251:      content: ' ';
                    252:      border-style: none none solid solid;
                    253:      border-color: #9999FF;
                    254:      border-width: 0.25em;
                    255:    }
                    256: 
                    257:    .example { display: block; color: #222222; background: #FCFCFC; border-left: double; margin-left: 2em; padding-left: 1em; }
                    258:    td > .example:only-child { margin: 0 0 0 0.1em; }
                    259: 
                    260:    ul.domTree, ul.domTree ul { padding: 0 0 0 1em; margin: 0; }
                    261:    ul.domTree li { padding: 0; margin: 0; list-style: none; position: relative; }
                    262:    ul.domTree li li { list-style: none; }
                    263:    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; }
                    264:    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; }
                    265:    ul.domTree span { font-style: italic; font-family: serif; }
                    266:    ul.domTree .t1 code { color: purple; font-weight: bold; }
                    267:    ul.domTree .t2 { font-style: normal; font-family: monospace; }
                    268:    ul.domTree .t2 .name { color: black; font-weight: bold; }
                    269:    ul.domTree .t2 .value { color: blue; font-weight: normal; }
                    270:    ul.domTree .t3 code, .domTree .t4 code, .domTree .t5 code { color: gray; }
                    271:    ul.domTree .t7 code, .domTree .t8 code { color: green; }
                    272:    ul.domTree .t10 code { color: teal; }
                    273: 
                    274:    body.dfnEnabled dfn { cursor: pointer; }
                    275:    .dfnPanel {
                    276:      display: inline;
                    277:      position: absolute;
                    278:      z-index: 10;
                    279:      height: auto;
                    280:      width: auto;
                    281:      padding: 0.5em 0.75em;
                    282:      font: small sans-serif, Droid Sans Fallback;
                    283:      background: #DDDDDD;
                    284:      color: black;
                    285:      border: outset 0.2em;
                    286:    }
                    287:    .dfnPanel * { margin: 0; padding: 0; font: inherit; text-indent: 0; }
                    288:    .dfnPanel :link, .dfnPanel :visited { color: black; }
                    289:    .dfnPanel p { font-weight: bolder; }
                    290:    .dfnPanel * + p { margin-top: 0.25em; }
                    291:    .dfnPanel li { list-style-position: inside; }
                    292: 
                    293:    #configUI { position: absolute; z-index: 20; top: 10em; right: 1em; width: 11em; font-size: small; }
                    294:    #configUI p { margin: 0.5em 0; padding: 0.3em; background: #EEEEEE; color: black; border: inset thin; }
                    295:    #configUI p label { display: block; }
                    296:    #configUI #updateUI, #configUI .loginUI { text-align: center; }
                    297:    #configUI input[type=button] { display: block; margin: auto; }
                    298: 
                    299:    fieldset { margin: 1em; padding: 0.5em 1em; }
                    300:    fieldset > legend + * { margin-top: 0; }
                    301:    fieldset > :last-child { margin-bottom: 0; }
                    302:    fieldset p { margin: 0.5em 0; }
                    303: 
1.198     sruby     304:   </style><link href="http://www.w3.org/StyleSheets/TR/W3C-ED" rel="stylesheet" type="text/css"><script>
1.1       mike      305:    function getCookie(name) {
                    306:      var params = location.search.substr(1).split("&");
                    307:      for (var index = 0; index < params.length; index++) {
                    308:        if (params[index] == name)
                    309:          return "1";
                    310:        var data = params[index].split("=");
                    311:        if (data[0] == name)
                    312:          return unescape(data[1]);
                    313:      }
                    314:      var cookies = document.cookie.split("; ");
                    315:      for (var index = 0; index < cookies.length; index++) {
                    316:        var data = cookies[index].split("=");
                    317:        if (data[0] == name)
                    318:          return unescape(data[1]);
                    319:      }
                    320:      return null;
                    321:    }
1.195     sruby     322:   </script><link href="edits-and-paragraphs.html" title="4.7.4 Edits and paragraphs" rel="prev">
                    323:   <link href="spec.html#contents" title="Table of contents" rel="contents">
1.159     sruby     324:   <link href="the-img-element.html" title="4.8.1 The img element" rel="next">
1.22      mike      325:   </head><body onload="fixBrokenLink();" class="split chapter"><div class="head" id="head">
1.1       mike      326:    <p><a href="http://www.w3.org/"><img alt="W3C" height="48" src="http://www.w3.org/Icons/w3c_home" width="72"></a></p>
                    327: 
                    328:    <h1>HTML5</h1>
1.195     sruby     329:    <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>
1.199   ! sruby     330:    <h2 class="no-num no-toc" id="editor's-draft-date-1-january-1970">Editor's Draft 13 October 2012</h2>
1.85      mike      331:    </div>
1.198     sruby     332:   
                    333: 
                    334:   <div class="prev_next">
1.1       mike      335:    <a href="edits-and-paragraphs.html">&#8592; 4.7.4 Edits and paragraphs</a> &#8211;
1.195     sruby     336:    <a href="spec.html#contents">Table of contents</a> &#8211;
1.159     sruby     337:    <a href="the-img-element.html">4.8.1 The img element &#8594;</a>
                    338:   <ol class="toc"><li><ol><li><ol><li><a href="edits-and-lists.html#edits-and-lists"><span class="secno">4.7.5 </span>Edits and lists</a></li><li><a href="edits-and-lists.html#edits-and-tables"><span class="secno">4.7.6 </span>Edits and tables</a></li></ol></li><li><a href="edits-and-lists.html#embedded-content-0"><span class="secno">4.8 </span>Embedded content</a>
1.195     sruby     339:     </li></ol></li></ol></div>
1.1       mike      340: 
1.85      mike      341:   <h4 id="edits-and-lists"><span class="secno">4.7.5 </span>Edits and lists</h4>
                    342: 
                    343:   <p><i>This section is non-normative.</i></p>
                    344:   <p>The content models of the <code><a href="the-ol-element.html#the-ol-element">ol</a></code> and <code><a href="the-ul-element.html#the-ul-element">ul</a></code>
1.1       mike      345:   elements do not allow <code><a href="the-ins-element.html#the-ins-element">ins</a></code> and <code><a href="the-del-element.html#the-del-element">del</a></code> elements
                    346:   as children. Lists always represent all their items, including items
1.85      mike      347:   that would otherwise have been marked as deleted.</p>
                    348: 
                    349:   <p>To indicate that an item is inserted or deleted, an
1.1       mike      350:   <code><a href="the-ins-element.html#the-ins-element">ins</a></code> or <code><a href="the-del-element.html#the-del-element">del</a></code> element can be wrapped around
                    351:   the contents of the <code><a href="the-li-element.html#the-li-element">li</a></code> element. To indicate that an
                    352:   item has been replaced by another, a single <code><a href="the-li-element.html#the-li-element">li</a></code> element
                    353:   can have one or more <code><a href="the-del-element.html#the-del-element">del</a></code> elements followed by one or
1.85      mike      354:   more <code><a href="the-ins-element.html#the-ins-element">ins</a></code> elements.</p>
                    355: 
                    356:   <div class="example">
1.1       mike      357: 
                    358:    <p>In the following example, a list that started empty had items
                    359:    added and removed from it over time. The bits in the example that
                    360:    have been emphasized show the parts that are the "current" state of
                    361:    the list. The list item numbers don't take into account the edits,
                    362:    though.</p>
                    363: 
                    364:    <pre>&lt;h1&gt;Stop-ship bugs&lt;/h1&gt;
                    365: &lt;ol&gt;
                    366:  &lt;li&gt;&lt;ins datetime="2008-02-12T15:20Z"&gt;<em>Bug 225:
                    367:  Rain detector doesn't work in snow</em>&lt;/ins&gt;&lt;/li&gt;
                    368:  &lt;li&gt;&lt;del datetime="2008-03-01T20:22Z"&gt;&lt;ins datetime="2008-02-14T12:02Z"&gt;Bug 228:
                    369:  Water buffer overflows in April&lt;/ins&gt;&lt;/del&gt;&lt;/li&gt;
                    370:  &lt;li&gt;&lt;ins datetime="2008-02-16T13:50Z"&gt;<em>Bug 230:
                    371:  Water heater doesn't use renewable fuels</em>&lt;/ins&gt;&lt;/li&gt;
                    372:  &lt;li&gt;&lt;del datetime="2008-02-20T21:15Z"&gt;&lt;ins datetime="2008-02-16T14:25Z"&gt;Bug 232:
                    373:  Carbon dioxide emissions detected after startup&lt;/ins&gt;&lt;/del&gt;&lt;/li&gt;
                    374: &lt;/ol&gt;</pre>
                    375: 
1.85      mike      376:   </div>
                    377: 
                    378:   <div class="example">
1.1       mike      379: 
                    380:    <p>In the following example, a list that started with just fruit
                    381:    was replaced by a list with just colors.</p>
                    382: 
                    383:    <pre>&lt;h1&gt;List of &lt;del&gt;fruits&lt;/del&gt;&lt;ins&gt;colors&lt;/ins&gt;&lt;/h1&gt;
                    384: &lt;ul&gt;
                    385:  &lt;li&gt;&lt;del&gt;Lime&lt;/del&gt;&lt;ins&gt;Green&lt;/ins&gt;&lt;/li&gt;
                    386:  &lt;li&gt;&lt;del&gt;Apple&lt;/del&gt;&lt;/li&gt;
                    387:  &lt;li&gt;Orange&lt;/li&gt;
                    388:  &lt;li&gt;&lt;del&gt;Pear&lt;/del&gt;&lt;/li&gt;
                    389:  &lt;li&gt;&lt;ins&gt;Teal&lt;/ins&gt;&lt;/li&gt;
                    390:  &lt;li&gt;&lt;del&gt;Lemon&lt;/del&gt;&lt;ins&gt;Yellow&lt;/ins&gt;&lt;/li&gt;
                    391:  &lt;li&gt;Olive&lt;/li&gt;
                    392:  &lt;li&gt;&lt;ins&gt;Purple&lt;/ins&gt;&lt;/li&gt;
                    393: &lt;/ul&gt;</pre>
                    394: 
1.85      mike      395:   </div>
                    396: 
                    397: 
                    398:   <h4 id="edits-and-tables"><span class="secno">4.7.6 </span>Edits and tables</h4>
                    399: 
                    400:   <p><i>This section is non-normative.</i></p>
                    401:   <p>The elements that form part of the table model have complicated
1.1       mike      402:   content model requirements that do not allow for the
                    403:   <code><a href="the-ins-element.html#the-ins-element">ins</a></code> and <code><a href="the-del-element.html#the-del-element">del</a></code> elements, so indicating edits
1.85      mike      404:   to a table can be difficult.</p>
                    405: 
                    406:   <p>To indicate that an entire row or an entire column has been added
1.1       mike      407:   or removed, the entire contents of each cell in that row or column
                    408:   can be wrapped in <code><a href="the-ins-element.html#the-ins-element">ins</a></code> or <code><a href="the-del-element.html#the-del-element">del</a></code> elements
1.85      mike      409:   (respectively).</p>
                    410: 
                    411:   <div class="example">
1.1       mike      412: 
                    413:    <p>Here, a table's row has been added:</p>
                    414: 
                    415:    <pre>&lt;table&gt;
                    416:  &lt;thead&gt;
                    417:   &lt;tr&gt; &lt;th&gt; Game name           &lt;th&gt; Game publisher   &lt;th&gt; Verdict
                    418:  &lt;tbody&gt;
                    419:   &lt;tr&gt; &lt;td&gt; Diablo 2            &lt;td&gt; Blizzard         &lt;td&gt; 8/10
                    420:   &lt;tr&gt; &lt;td&gt; Portal              &lt;td&gt; Valve            &lt;td&gt; 10/10
                    421: <strong>  &lt;tr&gt; &lt;td&gt; &lt;ins&gt;Portal 2&lt;/ins&gt; &lt;td&gt; &lt;ins&gt;Valve&lt;/ins&gt; &lt;td&gt; &lt;ins&gt;10/10&lt;/ins&gt;</strong>
                    422: &lt;/table&gt;</pre>
                    423: 
                    424:    <p>Here, a column has been removed (the time at which it was removed is given also, as is a link to the page explaining why):</p>
                    425: 
                    426:    <pre>&lt;table&gt;
                    427:  &lt;thead&gt;
                    428:   &lt;tr&gt; &lt;th&gt; Game name           &lt;th&gt; Game publisher   &lt;th&gt; <strong>&lt;del cite="/edits/r192" datetime="2011-05-02 14:23Z"&gt;Verdict&lt;/del&gt;</strong>
                    429:  &lt;tbody&gt;
                    430:   &lt;tr&gt; &lt;td&gt; Diablo 2            &lt;td&gt; Blizzard         &lt;td&gt; <strong>&lt;del cite="/edits/r192" datetime="2011-05-02 14:23Z"&gt;8/10&lt;/del&gt;</strong>
                    431:   &lt;tr&gt; &lt;td&gt; Portal              &lt;td&gt; Valve            &lt;td&gt; <strong>&lt;del cite="/edits/r192" datetime="2011-05-02 14:23Z"&gt;10/10&lt;/del&gt;</strong>
                    432:   &lt;tr&gt; &lt;td&gt; Portal 2            &lt;td&gt; Valve            &lt;td&gt; <strong>&lt;del cite="/edits/r192" datetime="2011-05-02 14:23Z"&gt;10/10&lt;/del&gt;</strong>
                    433: &lt;/table&gt;</pre>
                    434: 
1.85      mike      435:   </div>
                    436: 
                    437:   <p>Generally speaking, there is no good way to indicate more
1.1       mike      438:   complicated edits (e.g. that a cell was removed, moving all
1.85      mike      439:   subsequent cells up or to the left).</p>
                    440: 
                    441: 
                    442: 
                    443: 
1.159     sruby     444:   <h3 id="embedded-content-0"><span class="secno">4.8 </span>Embedded content</h3>
                    445: 
                    446: 
1.85      mike      447:   </body></html>

Webmaster