This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28334 - Successful Validatation with missing closing BODY tag
Summary: Successful Validatation with missing closing BODY tag
Status: RESOLVED WONTFIX
Alias: None
Product: Validator
Classification: Unclassified
Component: check (show other bugs)
Version: HEAD
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-03-25 16:01 UTC by Chris
Modified: 2015-08-23 07:18 UTC (History)
2 users (show)

See Also:


Attachments

Description Chris 2015-03-25 16:01:47 UTC
The following code validates successfully on the W3C Checker, but is actually missing a closing BODY tag:

<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=Edge">
	<meta name="description" content="&Agrave; Tant&ocirc;t! Modern Foreign Language (MFL) resources for the classroom and interactive whiteboards across Key Stage 2 (KS2), KS3 and KS4.">
	<title>&Agrave; Tant&ocirc;t</title>
	<link href="http://www.atantot.com/skin/atantot_main.css" rel="stylesheet" type="text/css">
	<style type="text/css">
	
		#skip
		{
			display: inline-block;
			position: absolute;
			padding: 20px;
			width: 100px;
			text-align: center;
			background: #fff;
			color: #000;
			text-decoration: none;
			font-weight: bold;
			border: 3px solid #000;
			border-radius: 7px;
			bottom: 40px;
			left: 50%;
			margin: 0 0 0 -73px;
			font-family: sans-serif;
		}
		
		#skip:hover
		{
			background: #4d86c7;
			color: #fff;
		}
		
	</style>
</head>
<body>
	<div id="flashholder" class="flashholder">
		<object style="width: 100%; height: 100%;" type="application/x-shockwave-flash" data="flashfiles/index/flashindex.swf">
			<param name="movie" value="flashfiles/index/flashindex.swf">
			<param name="wmode" value="transparent">
			<param name="menu" value="false">
			<param name="allowScriptAccess" value="always">
			<embed type="application/x-shockwave-flash" src="flashfiles/index/flashindex.swf" style="width: 100%; height: 100%;" menu="false" wmode="transparent" allowScriptAccess="always">
		</object>
	</div>
	<a href="menu.php" id="skip">Skip Intro</a>
</html>
Comment 1 Michael[tm] Smith 2015-08-23 07:18:19 UTC
The body end tag is not required. The validator is behaving as expected.
https://html.spec.whatwg.org/multipage/semantics.html#the-body-element