[aur-general] Upgraded AUR to 1.8.1

Thomas Jost schnouki at schnouki.net
Thu Mar 10 14:25:02 EST 2011


On Thu, 10 Mar 2011 14:16:53 -0500, Adam Weiss <adam at archlinux.us> wrote:
> On Thu, Mar 10, 2011 at 13:54, Lukas Fleischer <archlinux at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://mailman.archlinux.org/pipermail/aur-general/attachments/20110310/4e02695c/attachment.asc>


More information about the aur-general mailing list