Re: Glitch with tables and AjaxUpdateContainer

Johann Werner <[email protected]>
Newsgroups gmane.comp.web.webobjects.wonder-disc
Message-ID <[email protected]>
Hey Ray,

problem is that a table element is only allowed to have caption, col, colgroup, thead, tfoot and tbody as direct children elements [1]. If you are using tr tags as in your example then most browsers will insert automatically a tbody for you but a form or any other type of html element will probably cause you trouble. So I am not sure if there is any fix strategy or if there should be one at all. Having your produced html code validate with the W3C validator [2] is a Good Thing™ ;-)

jw


[1] http://www.w3.org/TR/html4/struct/tables.html#edef-TABLE
[2] http://validator.w3.org/


Am 20.07.2012 um 20:17 schrieb Ray Kiddy:

> 
> It is great when this stuff works, but, boy, is it a PITA when it does not. Does anyone have a fix strategy for Ajax issues, other than head-scratching and random changing things around to see what might work?
> 
> So, here is something I spent entirely too much time dealing with. These two display the same. One may obviously be more correct HTML, but neither one makes browsers do bad things.
> 
> This does NOT work:
> 
> <table>
> 	<wo:form>
> 		<wo:loop>
> 			<tr>
> 				<td><AUC /></td>
> 			</tr>
> 		</wo:loop>
> 		<tr><td><wo:submit /></td></tr>
> 	</wo:form>
> </table>
> 
> This DOES work:
> 
> <wo:form>
> 	<table>
> 		<wo:loop>
> 			<tr>
> 				<td><AUC /></td>
> 			</tr>
> 		</wo:loop>
> 		<tr><td><wo:submit /></td></tr>
> 	</table>
> </wo:form>
> 
> What. The-F. Ever!
> 
> Really annoying, but there it is. No idea why. But fine.
> 
> - ray
> 
> 
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and 
> threat landscape has changed and how IT managers can respond. Discussions 
> will include endpoint security, mobile security and the latest in malware 
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Wonder-disc mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/wonder-disc
> 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.