W3C home > Mailing lists > Public > www-validator@w3.org > March 2014

Re: Error in validation report

From: David Dorward <david@dorward.me.uk>
Date: Tue, 04 Mar 2014 08:57:32 +0000
To: Torbz <torbz@torbz.co.uk>
Cc: www-validator@w3.org
Message-ID: <AFFC4510-0D1F-4892-BD9D-704B76C113CB@dorward.me.uk>
On 3 Mar 2014, at 20:55, Torbz wrote:

> There are only two <form> tags in the DOM and both are closed 
> correctly with valid forms.

You've used a self-closing tag instead of a start tag for this one:

<form 
action="http://sunproof.us7.list-manage.com/subscribe/post?u=eb46639b4f896dd9c07b81489&amp;id=9aac1c8e93" 
method="post" id="mc-embedded-subscribe-form" class="validate" />

That isn't what you intended and is not allowed under the HTML 
compatibility rules.

I suggest avoiding XHTML as it provides few benefits (and most 
developers do not take advantages of those benefits) and serving it as 
text/html causes it to be treated as HTML by browsers (leading to issues 
like this one).

-- 
David Dorward
http://dorward.co.uk/
Received on Tuesday, 4 March 2014 08:58:00 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:10 UTC