• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

HTML5Entities.phpH A D03-May-202243.3 KiB1,5341,517

OutputRules.phpH A D03-May-202216.2 KiB554344

README.mdH A D01-Jul-2021929 3322

RulesInterface.phpH A D03-May-20222.6 KiB10013

Traverser.phpH A D03-May-20224.2 KiB143115

README.md

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.