On Thu, 10 Mar 2011 14:16:53 -0500, Adam Weiss <adam@archlinux.us> wrote:
On Thu, Mar 10, 2011 at 13:54, Lukas Fleischer <archlinux@cryptocrack.de> wrote:
That seems to happen with WebKit only. Any Safari/Chrom{e,ium} user around that is willing to point out the problem? Should be kinda easy to figure out using the Web Inspector.
The violator is: the second <p> under pgboxbody: <p> <span class="f3"></span> </p>
It's just before: <form method="POST" action="packages.php?ID=[ID]"> <input type="hidden" name="action" value="do_ChangeCategory">Category: <select name="category_id"> ...
Hope that helps, can't do much hacking on the source from work :)
Actually it's weirder than that :) The code you copied is what you get using Chromium Web Inspector. But the *actual* source code is like this: <p> <span class="f3"> <form ...></form> </span> </p> But this is invalid. Here is the error reported by the W3C validator: -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- document type does not allow element "form" here; missing one of "object", "ins", "del", "map" start-tag <span class='f3'><form method='POST' action='packages.php?ID=34085'> The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element. One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>"). -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- 8< -- So, <form> is a block-level element, but <span> is an inline element. And apparently WebKit "solves" this problem by moving the block-level element outside the inline element... Suggestions: - get rid of the <span> - add a "display: inline" CSS rule for the form Regards, -- Thomas/Schnouki