# domhandler [![Build Status](https://travis-ci.org/yanghuabei/domhandler.svg?branch=master)](https://travis-ci.org/yanghuabei/domhandler) The DOM handler (formally known as DefaultHandler) creates a tree containing all nodes of a page. The tree may be manipulated using the [domutils](https://github.com/fb55/domutils) library. ## Differences with origin domhandler 1. Add `selfClose` flag to node. 2. Add `singleQuoteAttribs` map to node. This project can work with [stricter-htmlparser2](https://github.com/yanghuabei/htmlparser2). ## Usage ```javascript var handler = new DomHandler([ callback(err, dom), ] [ options ]); // var parser = new Parser(handler[, options]); ``` Available options are described below. ## Example ```javascript var htmlparser = require("htmlparser2"); var rawHtml = "Xyz