Need help with html5-el?
Click the “chat” button below for chat support from the developer who created it, or find similar developers for support.


HTML5 and XHTML5 tools in Emacs Lisp

128 Stars 13 Forks MIT License 18 Commits 1 Opened issues

Services available

Need anything else?


This is an umbrella repository for various projects of mine involving working with HTML5 in Emacs Lisp.

Edit XHTML5 documents with

This provides the ability to use

to edit XHTML5 documents with RELAX NG validation.

How to use

First, you'll need to fetch the RELAX NG schema from the WHAT Task Force subversion repository; a simple

make relaxng
in this directory should do the trick.

Next, you'll need to add this directory to your

. Let's assume you've placed it in
(add-to-list 'load-path "~/code/html5-el/")

Finally, wire this stuff into

like so, altering the path to
(eval-after-load "rng-loc"
  '(add-to-list 'rng-schema-locating-files "~/code/html5-el/schemas.xml"))

(require 'whattf-dt)

Experimental Emacs Lisp HTML5 tokenizer (

This is an implementation of the HTML5 tokenizer in Emacs Lisp. The API is relatively simple: with point at the location in a buffer where you'd like to start tokenizing, call

to move forward one token. The token moved over is returned.

Despite the fact that all the tokenizer states are implemented, this is very early on in its life and the interface is likely to change significantly.

We use cookies. If you continue to browse the site, you agree to the use of cookies. For more information on our use of cookies please see our Privacy Policy.