 class Text extends Node
 	constructor: (value, owner) ->
 		super "#text", value, Node.TEXT_NODE, owner
+Text::__defineSetter__ 'data', (v) -> @nodeValue = htmlescape(v)
 
 class DocumentFragment extends Node
 	constructor: (owner) ->

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
matcher = require("./css/nwmatcher")

NotSupported = () ->

exports.createDocument = () ->
	new HTMLDocument()

exports.registerGlobals = (g) ->
	g.Element = Element
	g.Node = Node
	g.Document = Document
	g.DocumentFragment = DocumentFragment
	g.NodeList = Array # HACK: for now...

# vim: ft=coffee
