2012-04-27 21:59:52 +00:00
|
|
|
/* Static Members */
|
|
|
|
|
|
|
|
ve.dm.example = {};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Serialized HTML.
|
|
|
|
*
|
|
|
|
* This is what the parser will emit.
|
|
|
|
*/
|
|
|
|
ve.dm.example.html =
|
|
|
|
'<h1>a<b>b</b><i>c</i></h1>' +
|
|
|
|
'<table>' +
|
|
|
|
'<tr>' +
|
|
|
|
'<td>' +
|
|
|
|
'<p>d</p>' +
|
|
|
|
'<ul>' +
|
|
|
|
'<li>' +
|
|
|
|
'<p>e</p>' +
|
|
|
|
'<ul>' +
|
|
|
|
'<li>' +
|
|
|
|
'<p>f</p>' +
|
|
|
|
'</li>' +
|
|
|
|
'</ul>' +
|
|
|
|
'</li>' +
|
|
|
|
'</ul>' +
|
|
|
|
'<ol>' +
|
|
|
|
'<li>' +
|
|
|
|
'<p>g</p>' +
|
|
|
|
'</li>' +
|
|
|
|
'</ol>' +
|
|
|
|
'</td>' +
|
|
|
|
'</tr>' +
|
|
|
|
'</table>' +
|
2012-05-04 18:56:32 +00:00
|
|
|
'<pre>h<img src="image.png">i</pre>'+
|
|
|
|
'<dl>' +
|
|
|
|
'<dt>' +
|
|
|
|
'<p>j</p>' +
|
|
|
|
'</dt>' +
|
|
|
|
'<dd>' +
|
|
|
|
'<p>k</p>' +
|
|
|
|
'</dd>' +
|
|
|
|
'</dl>';
|
2012-04-27 21:59:52 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Linear data.
|
|
|
|
*
|
|
|
|
* This is what we convert serialized HTML from the parser into so we can work with it more easily.
|
|
|
|
*
|
|
|
|
* There are three types of components in content data:
|
|
|
|
*
|
|
|
|
* {String} Plain text character
|
|
|
|
*
|
|
|
|
* {Array} Annotated character
|
|
|
|
* 0: {String} Character
|
|
|
|
* 1: {Object} List of references to immutable annotation objects, keyed by JSON
|
|
|
|
* serializations of their values (hashes)
|
|
|
|
*
|
|
|
|
* {Object} Opening or closing structural element
|
|
|
|
* type: {String} Symbolic node type name, if closing element first character will be "/"
|
|
|
|
* [attributes]: {Object} List of symbolic attribute name and literal value pairs
|
|
|
|
*/
|
|
|
|
ve.dm.example.data = [
|
|
|
|
// 0 - Beginning of heading
|
|
|
|
{ 'type': 'heading', 'attributes': { 'level': 1 } },
|
|
|
|
// 1 - Plain "a"
|
|
|
|
'a',
|
|
|
|
// 2 - Bold "b"
|
|
|
|
['b', { '{"type":"textStyle/bold"}': { 'type': 'textStyle/bold' } }],
|
|
|
|
// 3 - Italic "c"
|
|
|
|
['c', { '{"type":"textStyle/italic"}': { 'type': 'textStyle/italic' } }],
|
|
|
|
// 4 - End of heading
|
|
|
|
{ 'type': '/heading' },
|
|
|
|
// 5 - Beginning of table
|
|
|
|
{ 'type': 'table' },
|
|
|
|
// 6 - Beginning of row
|
|
|
|
{ 'type': 'tableRow' },
|
|
|
|
// 7 - Beginning of cell
|
|
|
|
{ 'type': 'tableCell' },
|
|
|
|
// 8 - Beginning of paragraph
|
|
|
|
{ 'type': 'paragraph' },
|
|
|
|
// 9 - Plain "d"
|
|
|
|
'd',
|
|
|
|
// 10 - End of paragraph
|
|
|
|
{ 'type': '/paragraph' },
|
|
|
|
// 11 - Beginning of bullet list
|
2012-05-03 21:54:27 +00:00
|
|
|
{ 'type': 'list', 'attributes': { 'style': 'bullet' } },
|
2012-04-27 21:59:52 +00:00
|
|
|
// 12 - Beginning of list item
|
2012-05-04 22:50:32 +00:00
|
|
|
{ 'type': 'listItem' },
|
2012-04-27 21:59:52 +00:00
|
|
|
// 13 - Beginning of paragraph
|
|
|
|
{ 'type': 'paragraph' },
|
|
|
|
// 14 - Plain "e"
|
|
|
|
'e',
|
|
|
|
// 15 - End of paragraph
|
|
|
|
{ 'type': '/paragraph' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 16 - Beginning of nested bullet list
|
2012-05-03 21:54:27 +00:00
|
|
|
{ 'type': 'list', 'attributes': { 'style': 'bullet' } },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 17 - Beginning of nested bullet list item
|
2012-05-04 22:50:32 +00:00
|
|
|
{ 'type': 'listItem' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 18 - Beginning of paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': 'paragraph' },
|
2012-05-01 02:38:42 +00:00
|
|
|
// 19 - Plain "f"
|
2012-04-27 21:59:52 +00:00
|
|
|
'f',
|
2012-04-30 18:43:01 +00:00
|
|
|
// 20 - End of paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/paragraph' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 21 - End of nested bullet list item
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/listItem' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 22 - End of nested bullet list
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/list' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 23 - End of bullet list item
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/listItem' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 24 - End of bullet list
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/list' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 25 - Beginning of numbered list
|
2012-05-03 21:54:27 +00:00
|
|
|
{ 'type': 'list', 'attributes': { 'style': 'number' } },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 26 - Beginning of numbered list item
|
2012-05-04 22:50:32 +00:00
|
|
|
{ 'type': 'listItem' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 27 - Beginning of paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': 'paragraph' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 28 - Plain "g"
|
2012-04-27 21:59:52 +00:00
|
|
|
'g',
|
2012-04-30 18:43:01 +00:00
|
|
|
// 29 - End of paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/paragraph' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 30 - End of item
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/listItem' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 31 - End of list
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/list' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 32 - End of cell
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/tableCell' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 33 - End of row
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/tableRow' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 34 - End of table
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/table' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 35 - Beginning of preformatted
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': 'preformatted' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 36 - Plain "h"
|
2012-04-27 21:59:52 +00:00
|
|
|
'h',
|
2012-04-30 18:43:01 +00:00
|
|
|
// 37 - Beginning of inline image
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': 'image', 'attributes': { 'html/src': 'image.png' } },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 38 - End of inline image
|
2012-04-27 21:59:52 +00:00
|
|
|
{ 'type': '/image' },
|
2012-04-30 18:43:01 +00:00
|
|
|
// 39 - Plain "i"
|
2012-04-27 21:59:52 +00:00
|
|
|
'i',
|
2012-04-30 18:43:01 +00:00
|
|
|
// 40 - End of preformatted
|
2012-05-04 18:56:32 +00:00
|
|
|
{ 'type': '/preformatted' },
|
|
|
|
// 41 - Beginning of definition list
|
|
|
|
{ 'type': 'definitionList' },
|
|
|
|
// 42 - Beginning of definition list term item
|
|
|
|
{ 'type': 'definitionListItem', 'attributes': { 'style': 'term' } },
|
|
|
|
// 43 - Beginning of paragraph
|
|
|
|
{ 'type': 'paragraph' },
|
|
|
|
// 44 - Plain "j"
|
|
|
|
'j',
|
|
|
|
// 45 - End of paragraph
|
|
|
|
{ 'type': '/paragraph' },
|
|
|
|
// 46 - End of definition list term item
|
|
|
|
{ 'type': '/definitionListItem' },
|
|
|
|
// 47 - Beginning of definition list definition item
|
|
|
|
{ 'type': 'definitionListItem', 'attributes': { 'style': 'definition' } },
|
|
|
|
// 48 - Beginning of paragraph
|
|
|
|
{ 'type': 'paragraph' },
|
2012-05-11 17:29:09 +00:00
|
|
|
// 49 - Plain "k"
|
|
|
|
'k',
|
2012-05-04 18:56:32 +00:00
|
|
|
// 50 - End of paragraph
|
|
|
|
{ 'type': '/paragraph' },
|
|
|
|
// 51 - End of definition list definition item
|
|
|
|
{ 'type': '/definitionListItem' },
|
|
|
|
// 52 - End of definition list
|
|
|
|
{ 'type': '/definitionList' }
|
2012-04-27 21:59:52 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Sample content data index.
|
|
|
|
*
|
|
|
|
* This is part of what a ve.dm.DocumentFragment generates when given linear data.
|
2012-04-30 20:23:46 +00:00
|
|
|
*
|
2012-05-04 18:56:32 +00:00
|
|
|
* (21) branch nodes
|
2012-04-30 20:23:46 +00:00
|
|
|
* (01) document node
|
|
|
|
* (01) heading node
|
|
|
|
* (01) table node
|
|
|
|
* (01) tableRow node
|
|
|
|
* (01) tableCell node
|
2012-05-04 18:56:32 +00:00
|
|
|
* (06) paragraph nodes
|
2012-04-30 20:23:46 +00:00
|
|
|
* (03) list nodes
|
|
|
|
* (03) listItem nodes
|
|
|
|
* (01) preformatted node
|
2012-05-04 18:56:32 +00:00
|
|
|
* (01) definitionList node
|
|
|
|
* (02) definitionListItem nodes
|
|
|
|
* (10) leaf nodes
|
|
|
|
* (09) text nodes
|
2012-04-30 20:23:46 +00:00
|
|
|
* (01) image node
|
2012-04-27 21:59:52 +00:00
|
|
|
*/
|
2012-04-30 19:37:08 +00:00
|
|
|
ve.dm.example.tree = new ve.dm.DocumentNode( [
|
2012-04-27 21:59:52 +00:00
|
|
|
// Heading with "abc"
|
|
|
|
new ve.dm.HeadingNode( [new ve.dm.TextNode( 3 )], ve.dm.example.data[0].attributes ),
|
|
|
|
new ve.dm.TableNode( [
|
|
|
|
new ve.dm.TableRowNode( [
|
|
|
|
new ve.dm.TableCellNode( [
|
|
|
|
// Paragraph with "d"
|
|
|
|
new ve.dm.ParagraphNode( [new ve.dm.TextNode( 1 )] ),
|
|
|
|
new ve.dm.ListNode( [
|
|
|
|
// 1st level bullet list item with "e"
|
|
|
|
new ve.dm.ListItemNode( [
|
2012-04-30 20:23:46 +00:00
|
|
|
new ve.dm.ParagraphNode( [new ve.dm.TextNode( 1 )] ),
|
|
|
|
new ve.dm.ListNode( [
|
|
|
|
// 2nd level bullet list item with "f"
|
|
|
|
new ve.dm.ListItemNode( [
|
|
|
|
new ve.dm.ParagraphNode( [new ve.dm.TextNode( 1 )] )
|
2012-05-04 18:56:32 +00:00
|
|
|
] )
|
2012-04-30 20:23:46 +00:00
|
|
|
], ve.dm.example.data[16].attributes )
|
2012-05-04 18:56:32 +00:00
|
|
|
] )
|
2012-04-27 21:59:52 +00:00
|
|
|
], ve.dm.example.data[11].attributes ),
|
|
|
|
new ve.dm.ListNode( [
|
|
|
|
// Numbered list item with "g"
|
|
|
|
new ve.dm.ListItemNode( [
|
|
|
|
new ve.dm.ParagraphNode( [new ve.dm.TextNode( 1 )] )
|
2012-05-04 18:56:32 +00:00
|
|
|
] )
|
2012-04-30 19:37:08 +00:00
|
|
|
], ve.dm.example.data[25].attributes )
|
2012-04-27 21:59:52 +00:00
|
|
|
] )
|
|
|
|
] )
|
|
|
|
] ),
|
|
|
|
// Preformatted with "h[image.png]i"
|
|
|
|
new ve.dm.PreformattedNode( [
|
|
|
|
new ve.dm.TextNode( 1 ),
|
2012-04-30 19:37:08 +00:00
|
|
|
new ve.dm.ImageNode( [], ve.dm.example.data[37].attributes ),
|
2012-04-27 21:59:52 +00:00
|
|
|
new ve.dm.TextNode( 1 )
|
2012-05-04 18:56:32 +00:00
|
|
|
] ),
|
|
|
|
new ve.dm.DefinitionListNode( [
|
|
|
|
// Definition list term item with "j"
|
|
|
|
new ve.dm.DefinitionListItemNode( [
|
|
|
|
new ve.dm.ParagraphNode( [new ve.dm.TextNode( 1 )] )
|
|
|
|
], ve.dm.example.data[42].attributes ),
|
|
|
|
// Definition list definition item with "k"
|
|
|
|
new ve.dm.DefinitionListItemNode( [
|
|
|
|
new ve.dm.ParagraphNode( [new ve.dm.TextNode( 1 )] )
|
|
|
|
], ve.dm.example.data[47].attributes )
|
2012-04-27 21:59:52 +00:00
|
|
|
] )
|
2012-04-30 19:37:08 +00:00
|
|
|
] );
|
2012-04-27 21:59:52 +00:00
|
|
|
|
|
|
|
/* Methods */
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Creates an offset map that references a node tree.
|
|
|
|
*
|
|
|
|
* This is part of what a ve.dm.DocumentFragment generates when given linear data.
|
|
|
|
*
|
|
|
|
* @method
|
|
|
|
* @param {ve.dm.DocumentNode} root Document node to reference
|
|
|
|
*/
|
2012-04-28 00:16:29 +00:00
|
|
|
ve.dm.example.getOffsetMap = function( root ) {
|
2012-05-10 04:11:09 +00:00
|
|
|
var lookup = ve.example.lookupNode;
|
2012-04-27 21:59:52 +00:00
|
|
|
return [
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root ), // 0 - document
|
2012-04-27 21:59:52 +00:00
|
|
|
// <h1>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 0 ), // 1 - heading
|
2012-04-27 21:59:52 +00:00
|
|
|
// a
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 0 ), // 2 - heading
|
2012-04-27 21:59:52 +00:00
|
|
|
// b (bold)
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 0 ), // 3 - heading
|
2012-04-27 21:59:52 +00:00
|
|
|
// c (italic)
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 0 ), // 4 - heading
|
2012-04-27 21:59:52 +00:00
|
|
|
// </h1>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root ), // 5 - document
|
2012-04-27 21:59:52 +00:00
|
|
|
// <table>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1 ), // 6 - table
|
2012-04-27 21:59:52 +00:00
|
|
|
// <tr>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0 ), // 7 - tableRow
|
2012-04-27 21:59:52 +00:00
|
|
|
// <td>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0 ), // 8 - tableCell
|
2012-04-27 21:59:52 +00:00
|
|
|
// <p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 0 ), // 9 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// d
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 0 ), // 10 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// </p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0 ), // 11 - tableCell
|
2012-04-27 21:59:52 +00:00
|
|
|
// <ul>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1 ), // 12 - list
|
2012-04-27 21:59:52 +00:00
|
|
|
// <li>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0 ), // 13 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// <p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 0 ), // 14 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// e
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 0 ), // 15 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// </p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0 ), // 16 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// <ul>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 1 ), // 17 - list
|
2012-04-27 21:59:52 +00:00
|
|
|
// <li>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 1, 0 ), // 18 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// <p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 1, 0, 0 ), // 19 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// f
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 1, 0, 0 ), // 20 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// </p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 1, 0 ), // 21 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// </li>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0, 1 ), // 22 - list
|
2012-04-27 21:59:52 +00:00
|
|
|
// </ul>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1, 0 ), // 23 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// </li>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 1 ), // 24 - list
|
2012-04-27 21:59:52 +00:00
|
|
|
// </ul>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0 ), // 25 - tableCell
|
2012-04-27 21:59:52 +00:00
|
|
|
// <ul>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 2 ), // 26 - list
|
2012-04-27 21:59:52 +00:00
|
|
|
// <li>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 2, 0 ), // 27 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// <p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 2, 0, 0 ), // 28 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// g
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 2, 0, 0 ), // 29 - paragraph
|
2012-04-27 21:59:52 +00:00
|
|
|
// </p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 2, 0 ), // 30 - listItem
|
2012-04-27 21:59:52 +00:00
|
|
|
// </li>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0, 2 ), // 31 - list
|
2012-04-27 21:59:52 +00:00
|
|
|
// </ul>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0, 0 ), // 32 - tableCell
|
2012-04-27 21:59:52 +00:00
|
|
|
// </td>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1, 0 ), // 33 - tableRow
|
2012-04-27 21:59:52 +00:00
|
|
|
// </tr>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 1 ), // 34 - table
|
2012-04-27 21:59:52 +00:00
|
|
|
// </table>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root ), // 35- document
|
2012-04-27 21:59:52 +00:00
|
|
|
// <pre>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 2 ), // 36 - preformatted
|
2012-04-27 21:59:52 +00:00
|
|
|
// h
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 2 ), // 37 - preformatted
|
2012-04-27 21:59:52 +00:00
|
|
|
// <img>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 2 ), // 38 - preformatted
|
2012-04-27 21:59:52 +00:00
|
|
|
// </img>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 2 ), // 39 - preformatted
|
2012-04-27 21:59:52 +00:00
|
|
|
// i
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 2 ), // 40 - preformatted
|
2012-04-27 21:59:52 +00:00
|
|
|
// </pre>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root ), // 41 - document
|
2012-05-04 18:56:32 +00:00
|
|
|
// <dl>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3 ), // 42 - definitionList
|
2012-05-04 18:56:32 +00:00
|
|
|
// <dt>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 0 ), // 43 - definitionListItem
|
2012-05-04 18:56:32 +00:00
|
|
|
// <p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 0, 0 ), // 44 - paragraph
|
2012-05-11 17:29:09 +00:00
|
|
|
// j
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 0, 0 ), // 45 - paragraph
|
2012-05-04 18:56:32 +00:00
|
|
|
// </p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 0 ), // 46 - definitionListItem
|
2012-05-04 18:56:32 +00:00
|
|
|
// </dt>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3 ), // 47 - definitionList
|
2012-05-04 18:56:32 +00:00
|
|
|
// <dd>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 1 ), // 48 - definitionListItem
|
2012-05-04 18:56:32 +00:00
|
|
|
// <p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 1, 0 ), // 49 - paragraph
|
2012-05-11 17:29:09 +00:00
|
|
|
// k
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 1, 0 ), // 50 - paragraph
|
2012-05-04 18:56:32 +00:00
|
|
|
// </p>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3, 1 ), // 51 - definitionListItem
|
2012-05-04 18:56:32 +00:00
|
|
|
// </dd>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root, 3 ), // 52 - definitionList
|
2012-05-04 18:56:32 +00:00
|
|
|
// </dl>
|
2012-05-07 22:14:37 +00:00
|
|
|
lookup( root ) // 53 - document
|
2012-04-27 21:59:52 +00:00
|
|
|
];
|
|
|
|
};
|