<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-4061740313877866897.post4532267391785258702..comments</id><updated>2011-12-20T10:44:55.753+11:00</updated><category term='apex'/><category term='Offline'/><category term='javascript'/><category term='stack exchange'/><category term='debugging'/><category term='quirks'/><category term='bug'/><category term='501'/><category term='Chatter Desktop'/><category term='schedulable'/><category term='Boids Screensaver'/><category term='field sets'/><category term='salesforce'/><category term='Tutorials'/><category term='stack overflow'/><category term='HTML 5'/><category term='aggregate functions'/><category term='C++'/><category term='batch apex'/><category term='social enterprise'/><category term='lookup relationships'/><category term='css'/><category term='401'/><category term='About Me'/><category term='google charts'/><category term='eclipse'/><category term='Chatter'/><category term='timezones'/><category term='test methods'/><category term='rerender'/><category term='Coding'/><category term='Manifest File'/><category term='soql'/><category term='pdf generation'/><category term='301'/><category term='java'/><category term='Mandelbrot Set'/><category term='deployment'/><category term='Adobe AIR'/><category term='screensaver'/><category term='Advanced Administrator'/><category term='Haikuware'/><category term='visualforce'/><category term='201'/><category term='haiku'/><category term='Maths'/><category term='certification'/><category term='Movember'/><category term='mac'/><category term='HTML'/><category term='Buddhabrot'/><title type='text'>Comments on Force.com Development Tips &amp;amp; Other Snippets&lt;br&gt;by Matt Lacey: Beware Bad Markup, When You Least Expect It!</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.laceysnr.com/feeds/4532267391785258702/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default'/><link rel='alternate' type='text/html' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html'/><author><name>Matt Lacey</name><uri>https://profiles.google.com/111827922894049648255</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='//lh3.googleusercontent.com/-taxx-xJfKIg/AAAAAAAAAAI/AAAAAAAAAmI/cHpkkobvg54/s512-c/photo.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>5</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4061740313877866897.post-3607588762319583928</id><published>2011-12-20T10:44:55.753+11:00</published><updated>2011-12-20T10:44:55.753+11:00</updated><title type='text'>Guessing those were the only two parts missing?</title><content type='html'>Guessing those were the only two parts missing?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/3607588762319583928'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/3607588762319583928'/><link rel='alternate' type='text/html' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html?showComment=1324338295753#c3607588762319583928' title=''/><author><name>Matt Lacey</name><uri>http://www.blogger.com/profile/07254148667338147404</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-ZyZ9siAPg8s/TpT3gdXc6MI/AAAAAAAAAgs/PEc67_VDXeE/s220/profile.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html' ref='tag:blogger.com,1999:blog-4061740313877866897.post-4532267391785258702' source='http://www.blogger.com/feeds/4061740313877866897/posts/default/4532267391785258702' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1670161151'/></entry><entry><id>tag:blogger.com,1999:blog-4061740313877866897.post-7527773855479613489</id><published>2011-12-20T07:38:06.810+11:00</published><updated>2011-12-20T07:38:06.810+11:00</updated><title type='text'>Ha, I managed to read it without realising - must ...</title><content type='html'>Ha, I managed to read it without realising - must have filled in the blanks in my head. Will try and edit that when I get to the office today.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/7527773855479613489'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/7527773855479613489'/><link rel='alternate' type='text/html' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html?showComment=1324327086810#c7527773855479613489' title=''/><author><name>Matt Lacey</name><uri>http://www.blogger.com/profile/07254148667338147404</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-ZyZ9siAPg8s/TpT3gdXc6MI/AAAAAAAAAgs/PEc67_VDXeE/s220/profile.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html' ref='tag:blogger.com,1999:blog-4061740313877866897.post-4532267391785258702' source='http://www.blogger.com/feeds/4061740313877866897/posts/default/4532267391785258702' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1670161151'/></entry><entry><id>tag:blogger.com,1999:blog-4061740313877866897.post-8291666886047049976</id><published>2011-12-20T02:48:47.320+11:00</published><updated>2011-12-20T02:48:47.320+11:00</updated><title type='text'>Oops, looks like comment was stripped of tags so i...</title><content type='html'>Oops, looks like comment was stripped of tags so it doesn&amp;#39;t read clearly.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/8291666886047049976'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/8291666886047049976'/><link rel='alternate' type='text/html' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html?showComment=1324309727320#c8291666886047049976' title=''/><author><name>Chris Wall</name><uri>http://www.blogger.com/profile/10713177184789708327</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-x4HA6m96Q8c/Tuv6sUyJ1YI/AAAAAAAAAlQ/8EOfGyIOzUw/s220/trey-cropped.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html' ref='tag:blogger.com,1999:blog-4061740313877866897.post-4532267391785258702' source='http://www.blogger.com/feeds/4061740313877866897/posts/default/4532267391785258702' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1063142275'/></entry><entry><id>tag:blogger.com,1999:blog-4061740313877866897.post-1413296261447598897</id><published>2011-12-17T12:11:54.294+11:00</published><updated>2011-12-17T12:11:54.294+11:00</updated><title type='text'>Thank you! I could have kept going but the pressur...</title><content type='html'>Thank you! I could have kept going but the pressures of actually needing to write code were too great. Thanks for the detailed explanation of the different message elements, I&amp;#39;d seen some hefty lumps of markup which seem a little OTT for their purpose, but I guess it&amp;#39;s a case of supporting the lowest common denominator with regards to browsers.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/1413296261447598897'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/1413296261447598897'/><link rel='alternate' type='text/html' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html?showComment=1324084314294#c1413296261447598897' title=''/><author><name>Matt Lacey</name><uri>http://www.blogger.com/profile/07254148667338147404</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-ZyZ9siAPg8s/TpT3gdXc6MI/AAAAAAAAAgs/PEc67_VDXeE/s220/profile.jpg'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html' ref='tag:blogger.com,1999:blog-4061740313877866897.post-4532267391785258702' source='http://www.blogger.com/feeds/4061740313877866897/posts/default/4532267391785258702' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1670161151'/></entry><entry><id>tag:blogger.com,1999:blog-4061740313877866897.post-8319054793314170236</id><published>2011-12-17T08:21:19.538+11:00</published><updated>2011-12-17T08:21:19.538+11:00</updated><title type='text'>Nice investigation Matt!

To answer you question, ...</title><content type='html'>Nice investigation Matt!&lt;br /&gt;&lt;br /&gt;To answer you question,  and  are two different implementations: the former renders messages as ul/li elements and the latter a table of messages.  In fact &amp;#39;s table is wrapped in a div.  A div, when used inside a p tag, will actually close the p tag.  So, what&amp;#39;s happening here is that when the re-rendered response is applied to the DOM, the p tag is closed and everything after the message div is moved outside of the &amp;quot;thePanel&amp;quot; span.  Subsequent re-render responses only replace the &amp;quot;thePanel&amp;quot; element which, again, doesn&amp;#39;t contain the label and input element and the elements are applied to  as mentioned.  The label and input elements are re-added, not replaced.&lt;br /&gt;&lt;br /&gt;The take away here is that Visualforce needs better tooling to include HTML validation.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/8319054793314170236'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4061740313877866897/4532267391785258702/comments/default/8319054793314170236'/><link rel='alternate' type='text/html' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html?showComment=1324070479538#c8319054793314170236' title=''/><author><name>Unknown</name><uri>http://www.blogger.com/profile/10713177184789708327</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.laceysnr.com/2011/12/beware-bad-markup-when-you-least-expect.html' ref='tag:blogger.com,1999:blog-4061740313877866897.post-4532267391785258702' source='http://www.blogger.com/feeds/4061740313877866897/posts/default/4532267391785258702' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-1063142275'/></entry></feed>
