Jump to content

Topic on Talk:Parsing/Notes/Wikitext 2.0

Duesentrieb (talkcontribs)

The use of "DOM tree" is a bit unclear to me. Does it refer to a wikitext DOM, or an HTML DOM? Is that DOM then processed to generate HTML, or is it already HTML?

I think we will actually want both - constructs that return a wikitext DOM for further processing, and constructs that return an HTML DOM that will be used as-is. The latter would be useful for special page transclusion, parser tag extensions, and the transclusion of non-wikitext content in general. -- Duesentrieb ā‡Œ 22:25, 24 August 2016 (UTC)

SSastry (WMF) (talkcontribs)

I use DOM tree to refer to the HTML DOM. When the DOM is serialized, you get the final output HTML. Our experience with Parsoid and VisualEditor and other tools has been that the HTML DOM is rich enough to represent wikitext semantics without needing a specialized format.

Reply to "HTML DOM trees"