friendship ended with social-app. php is my new best friend
1# The Serializer (Writer) Model 2 3The serializer roughly follows sections _8.1 Writing HTML documents_ and section 4_8.3 Serializing HTML fragments_ by converting DOMDocument, DOMDocumentFragment, 5and DOMNodeList into HTML5. 6 7 [ HTML5 ] // Interface for saving. 8 || 9 [ Traverser ] // Walk the DOM 10 || 11 [ Rules ] // Convert DOM elements into strings. 12 || 13 [ HTML5 ] // HTML5 document or fragment in text. 14 15 16## HTML5 Class 17 18Provides the top level interface for saving. 19 20## The Traverser 21 22Walks the DOM finding each element and passing it off to the output rules to 23convert to HTML5. 24 25## Output Rules 26 27The output rules are defined in the RulesInterface which can have multiple 28implementations. Currently, the OutputRules is the default implementation that 29converts a DOM as is into HTML5. 30 31## HTML5 String 32 33The output of the process it HTML5 as a string or saved to a file.