 Copyright (c) 2011 Jesse Dailey <jesse.dailey@gmail.com>
 License: MIT License - http://www.opensource.org/licenses/mit-license.php
 ###
-htmlparse = require("./html/parser").parse
+parser = require("./html/parser")
+htmlparse = parser.parse
+htmlescape = parser.escape
+htmlunescape = parser.unescape
 matcher = require("./css/nwmatcher")
 
 NotSupported = () ->

class Text extends Node
	constructor: (value, owner) ->
		super "#text", value, Node.TEXT_NODE, owner

class DocumentFragment extends Node
	constructor: (owner) ->

	constructor: (a...) ->
		a[2] ?= Node.ELEMENT_NODE
		super a...
		@style = {}
	getElementsByClassName: (name) ->
		ret = []
		for c in @childNodes
