Parser 2011/WikiDom Specification

Note: We switched from WikiDom to HTML5 DOM with RDFa in December 2011, so this spec is no longer in use.

WikiDom is a serialization of Wikitext based on JSON and optimized for transport and adaptive processing. The structure is based on two basic types of nodes, branches and leafs. Branch nodes have child nodes and leaf nodes have content. A node can not be a branch and a leaf. Content objects in leaf nodes use offset annotations for formatting.

Object Types

 * Branch Node
 * type
 * attributes
 * children (branch/leaf nodes)
 * Leaf Node
 * type
 * attributes
 * content
 * Content
 * text
 * annotations
 * Annotation
 * type</tt>
 * range</tt>
 * data</tt>
 * Range
 * start</tt>
 * end</tt>

Node Examples

 * Table


 * Paragraph