W3C home > Mailing lists > Public > www-validator@w3.org > April 2013

Error in validator, missing starting <body> tag passes the validation process

From: Julio Meca Hansen <julio@refineriaweb.com>
Date: Mon, 22 Apr 2013 14:12:39 +0200
To: <www-validator@w3.org>
Message-ID: <007301ce3f52$aee8e5d0$0cbab170$@refineriaweb.com>

I’ve discovered what I think it’s an error in the HTML5 validator. Omitting
the starting <body> tag makes a web page (using the direct input validator)
go valid.

Here’s the sample HTML5 code I used to test the error:

<!DOCTYPE html>



        <meta charset="utf-8">

        <title>Prueba: selectores!</title>



        <form name="form1">

            <select name="selector1">

                <option value="a">A</option>

                <option value="b">B</option>

                <option value="c">C</option>

                <optgroup label="grupo1">

                    <option value="d">D</option>

                    <option value="e">E</option>


                <optgroup label="grupo2">

                    <option value="f">F</option>






In order to reproduce the error, paste this code and click on the validate
button. After you’ve passed the test, just delete the line containing the
<body> tag and click on the revalidate button. Voilá! :P


NOTE: Whenever possible, give the address of the document you were checking.
Received on Tuesday, 23 April 2013 05:48:50 UTC

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