lua-users home
lua-l archive

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


Wilford Brimley a écrit :
>>>> <a href="http://www.place.com/contentlatest.asp?tab=reviews&user=name";>reviews</a> - i can see the first one posing problems with "<scr' + ' ..., but the second seems relatively generic as far as html goes...not sure why that's causing problems.

I don't know luaexpat well enough to help you, but I can say that the above line isn't correct, at least in XHTML, and probably in most flavors of HTML. This kind of error is very frequently made, and most browsers will handle it correctly, but to be strictly compliant, it should be written: <a href="http://www.place.com/contentlatest.asp?tab=reviews&amp;user=name";>reviews</a>

You might want to pre-process such legacy HTML files, perhaps with HTML Tidy <http://tidy.sourceforge.net/>, or with TagSoup <http://mercury.ccil.org/~cowan/XML/tagsoup/>, to generate valid XML.

Note about the JavaScript error: the JS source should be enclosed in a CDATA tag, to allow naked < > and &:

<script type="text/javascript" language="JavaScript">//<![CDATA[
// JavaScript code here
//]]>
</script>


--
Philippe Lhoste
--  (near) Paris -- France
--  http://Phi.Lho.free.fr
--  --  --  --  --  --  --  --  --  --  --  --  --  --