1 # The Serializer (Writer) Model
3 The serializer roughly follows sections _8.1 Writing HTML documents_ and section
4 _8.3 Serializing HTML fragments_ by converting DOMDocument, DOMDocumentFragment,
5 and DOMNodeList into HTML5.
7 [ HTML5 ] // Interface for saving.
9 [ Traverser ] // Walk the DOM
11 [ Rules ] // Convert DOM elements into strings.
13 [ HTML5 ] // HTML5 document or fragment in text.
18 Provides the top level interface for saving.
22 Walks the DOM finding each element and passing it off to the output rules to
27 The output rules are defined in the RulesInterface which can have multiple
28 implementations. Currently, the OutputRules is the default implementation that
29 converts a DOM as is into HTML5.
33 The output of the process it HTML5 as a string or saved to a file.