4 This project is to build a HTML5 parser, then use that to build a WYSIWYG html
5 editor for the browser.
7 The code is written in CoffeeScript for modern browsers. The HTML5 parser can
8 also run under node.js.
14 HTML5 parser: all (1581) tests pass. Works in the browser and node.js
16 WYSIWYG editor: planning stages
22 1. Open ``test.html`` in your browser.
24 2. Open the console (right-click, inspect this element, console)
26 3. After a few seconds, you should see "Tests passed: 1581, Failed: 0" in the
29 4. Try running the parser in the console, example:
31 window.wheic.parse_html("<p>foo</p>", {fragment: "body"})
33 For further reading, see "Running Under node.js" below.
39 Dependancies: node.js, coffeescript
41 1. Install node.js https://nodejs.org/en/
43 2. Install coffeescript. Try:
45 apt-get install coffeescript
48 npm install -g coffee-script
50 3. You can run the tests directly from coffeescript:
54 4. Compile to javascript:
58 5. Run tests via compiled code:
62 5. Try using the parser in your own code:
64 var wheic = require('./parse-html.js');
65 var dom = wheic.parse_html("<p>hi</p>", {fragment: 'body'});
69 Feedback, Questions, Etc
70 ------------------------
72 Please communicate directly with Jason Woofenden by email: jason@jasonwoof.com
73 or on freenode /msg JasonWoof