summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatt Farina <[email protected]>2013-06-26 10:11:44 -0400
committerMatt Farina <[email protected]>2013-06-26 10:11:44 -0400
commita7c74625e33b83519e3182a8553aa39763591f02 (patch)
treec024ae94cdb77f3839779f1bb718ae8db9ccfea9 /src
parente49ccaf1803e3fb5dcbb5a93f95247d8f7586b75 (diff)
Added basic architectural documentation for the serializer/writer
Diffstat (limited to 'src')
-rw-r--r--src/HTML5/Serializer/README.md33
1 files changed, 33 insertions, 0 deletions
diff --git a/src/HTML5/Serializer/README.md b/src/HTML5/Serializer/README.md
new file mode 100644
index 0000000..17e3f75
--- /dev/null
+++ b/src/HTML5/Serializer/README.md
@@ -0,0 +1,33 @@
+# The Serializer (Writer) Model
+
+The serializer roughly follows sections _8.1 Writing HTML documents_ and section
+_8.3 Serializing HTML fragments_ by converting DOMDocument, DOMDocumentFragment,
+and DOMNodeList into HTML5.
+
+ [ Serializer ] // Interface for saving.
+ ||
+ [ Traverser ] // Walk the DOM
+ ||
+ [ Rules ] // Convert DOM elements into strings.
+ ||
+ [ HTML5 ] // HTML5 document or fragment in text.
+
+
+## The Serializer
+
+Provides the top level interface for saving.
+
+## The Traverser
+
+Walks the DOM finding each element and passing it off to the output rules to
+convert to HTML5.
+
+## Output Rules
+
+The output rules are defined in the RulesInterface which can have multiple
+implementations. Currently, the OutputRules is the default implementation that
+converts a DOM as is into HTML5.
+
+## HTML5 String
+
+The output of the process it HTML5 as a string or saved to a file. \ No newline at end of file