It looks like you’ve added form code to a post. Neat trick, but that’s probably what’s causing your grief.
You’ve got an open P tag for the paragraph (which is right) the form tag followed by another opening P tag (with out first closing the first one.) This I think is what’s cauing the problem. With out knowing how exactly you entered your post, I’d say take out any carriage returns you have, and replace them with
tags instead – see if that helps.
TG
Thread Starter
hoonnu
(@hoonnu)
I haven’t done it as such. My part in it is that I have made a passwordprotected post. It comes out like what you see. I have been playing with the , because I think that is the problem too. The trouble is, that it doesn’t work if you remove them. The php generates a few of them too, and that way you end up with too many. I don’t think they are allowed inside the form element at all, but I don’t know what should go instead. The only thing I have changed is that I have translated the English into Danish.
Ah, OK. So it sounds like there is something wrong with the part that generates the form for password protected posts….. interesting that no one has come across this before…. I’ll give it a try and see what happens.
Tg
I think part of the problem is that you are going for Strict Validation as opposed to the rather more lax transitional. I would guess that is why other errors like this have not been reported, and the workrounds.
Thread Starter
hoonnu
(@hoonnu)
I tried putting in the transitional doctype declaration. Unfortunately, it did not make any difference.
OK, just did a password protected post on my site and here’s my findings. Mine validated…. but I also noticed that my form tag is outside any P tags… it ends up between the div tag and the p tags…. so it would appear that something is out of place. Not sure if it’s something from the translation, or if a file got messed up.
TG
Thread Starter
hoonnu
(@hoonnu)
OK. Thanks. I’ll start up with a clean copy of the template-functions-post.php first thing in the morning.
Thread Starter
hoonnu
(@hoonnu)
Well, I couldn’t wait. I found a clean copy and uploaded it – it did not work. Are gremlins at play here, I wonder?
Thread Starter
hoonnu
(@hoonnu)
TG, I also have a blog that I write in English. http://hennystewart.com/blog . On it, I also made a test post with password-protection. The result is the same as on http://aktivfor.dk/forum = The page is no longer valid xhtml. So now I am wondering what you did differently from me to make your page validate in the same circumstance.