Re: [cowan@mercury.ccil.org: Questions about HTML void elements]

Anne van Kesteren scripsit:

> It certainly looks appealing, but you still have to remember all the void 
> elements anyway otherwise you might inadvertently insert content. And  
> people will be get confused about what happens to <hr>TEST</hr> and such.

If you try to put content inside an hr element, you either do not
understand the hr element or do not understand what content is, so no
rules simple or complicated will help you.  I'm interested in HTML5
validity, so I use a blacklist of elements which get empty-tags, and
allow everything else to simply use a start-tag/end-tag combination.

-- 
At the end of the Metatarsal Age, the dinosaurs     John Cowan
abruptly vanished. The theory that a single         cowan@ccil.org
catastrophic event may have been responsible        http://www.ccil.org/~cowan
has been strengthened by the recent discovery of
a worldwide layer of whipped cream marking the
Creosote-Tutelary boundary.             --Science Made Stupid

Received on Friday, 21 January 2011 16:01:58 UTC