lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Mon, Nov 19, 2012 at 12:09 AM, Rena <hyperhacker@gmail.com> wrote:

An issue I've found with this idea though (really any HTML generator) is HTML is pretty silly. There are some tags that have to use short form, and some that can't:

<script src="" /> -- invalid, and browsers will treat this as an unclosed <script> that will eat the entire page
<br></br> -- invalid AFAIK, at least very silly.

The only solution I know of is to have a table listing what tags can't use short form, but I don't know them all. (I really wonder why there are any...)

A nicer solution is to emit XHTML, and do so along with suitable headers such that browsers don't try to treat it like HTML.