ucla/mwf — Issue #94: HTML Tag Decorator incompatible with HTML5 void elements
Author: Trott
Created: 2012-02-05 15:52:52+00:00
State: open

In HTML5, void elements cannot have an end tag. http://www.w3.org/TR/html5/syntax.html#void-elements

This means that if you use an HTML5 doctype and the Tag Decorator to generate your `input` tags, you will have invalid markup.

You can still get valid markup by calling `tag_start()` rather than `tag()` but that seems like a hack and perhaps requiring the user to know too much about the underlying markup. Might a feature like this work a bit better?:

1. Have a config option as to whether or not we are generating HTML5 markup by default. Simple override mechanism would be a call to `Config::set()` before generating any markup.
1. Maintain a list of void elements and react to the config setting appropriately.