#
# Call it like this:
#
-# wheic_parser.parse("<p><b>hi</p>")
+# peach_parser.parse("<p><b>hi</p>")
#
# Or, if you don't want <html><head><body>/etc, do this:
#
-# wheic_parser.parse("<p><b>hi</p>", {fragment: "body"})
+# peach_parser.parse("<p><b>hi</p>", {fragment: "body"})
#
# return value is an array of Nodes, see "class Node" below.
exports = module.exports
else
context = 'browser'
- window.wheic_parser = {}
- exports = window.wheic_parser
+ window.peach_parser = {}
+ exports = window.peach_parser
from_code_point = (x) ->
if String.fromCodePoint?
yen: '¥', yuml: 'ÿ'
}
-void_elements = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']
-raw_text_elements = ['script', 'style']
-escapable_raw_text_elements = ['textarea', 'title']
+#void_elements = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'keygen', 'link', 'meta', 'param', 'source', 'track', 'wbr']
+#raw_text_elements = ['script', 'style']
+#escapable_raw_text_elements = ['textarea', 'title']
# http://www.w3.org/TR/SVG/ 1.1 (Second Edition)
svg_elements = [
'a', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'animate', 'animateColor',
prev.text += t.text
return
dest[0].children.splice dest[1], 0, t
+ t.parent = dest[0]
return
# 8.2.5 http://www.w3.org/TR/html5/syntax.html#tree-construction