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

[VE][libxml2-5] Confusing error when validating

From: <dlavelle@notes.cc.sunysb.edu>
Date: Fri, 5 Mar 2010 13:27:07 -0500
To: www-validator@w3.org
Message-ID: <OF652B31DA.86A065AF-ON852576DD.00653847-852576DD.00655C1C@notes.cc.sunysb.edu>
Hello,

Validating the following fails.  Is that correct?

Thanks,

    Don

Line 15: Extra content at the end of the document 
</html>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
        <title>Test</title>
    </head>
    <body style="width:980px; margin-left:auto; margin-right:auto">
        <select id="WhichSelect" name="which">
            <option value="volvo">Volvo</option>
            <option value="saab">Saab</option>
            <option value="mercedes"selected='selected'>Mercedes</option> 
<!-- put a space between {value="mercedes"} and {selected='selected'} to 
remove the error: Error  Line 15: Extra content at the end of the 
document.-->
            <option value="audi">Audi</option>
        </select>
    </body> 
</html>


picture
(image/png attachment: 01-part)

Received on Monday, 8 March 2010 13:21:27 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:40 GMT