 				delete @ownerDocument?._private.idMap[@id]
 	# selectors
 	matchesSelector: (selector) ->
-		@ownerDocument?._private.matcher.matches(selector, @)
+		@ownerDocument?._private.matcher.match(@, selector)
 	querySelector: (selector) ->
 		@ownerDocument?._private.matcher.select(selector, @)[0]
 	querySelectorAll: (selector) ->

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

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
###
parser = require("./html/parser")
htmlparse = parser.parse
htmlescape = parser.escape
htmlunescape = parser.unescape
matcher = require("./css/nwmatcher")

NotSupported = () ->
