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 8004 - suggestion code can't pass validate
Summary: suggestion code can't pass validate
Status: RESOLVED DUPLICATE of bug 6995
Alias: None
Product: Validator
Classification: Unclassified
Component: Templates (show other bugs)
Version: 0.8.5
Hardware: All All
: P5 trivial
Target Milestone: 0.8.6
Assignee: This bug has no owner yet - up for the taking
QA Contact: qa-dev tracking
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-22 12:04 UTC by rimy
Modified: 2009-10-23 12:45 UTC (History)
1 user (show)

See Also:


Attachments

Description rimy 2009-10-22 12:04:38 UTC
I tried to valid a quite simple document such as
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>Demo</title>
	</head>
	<body>
		<h1>Demo</h1>
	</body>
</html>

I got 1 Error and tell me Missing xmlns attribute for element html. The value should be: http://www.w3.org/1999/xhtml

and a prompt like this:
Many Document Types based on XML need a mandatory xmlns="" on the root element. For example, the root element for XHTML will look like:
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

so I use <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> insted <html> then I got Attribute "lang" exists, but can not be used for this element.

¡­ns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

so then what I should write? with lang or without lang?
Comment 1 Ville Skyttä 2009-10-23 12:45:53 UTC

*** This bug has been marked as a duplicate of bug 6995 ***