lua-users home
lua-l archive

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


On Sun, Nov 18, 2012 at 7:20 PM, Peter Cawley <lua@corsix.org> wrote:
> 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="foo.js" /> -- 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.

Hm, I thought even that doesn't allow for short-form script tags.
Perhaps I used the wrong headers?

-- 
Sent from my Game Boy.