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

Add Subject Here

From: Keve Nagy <keve@safe-mail.net>
Date: Sat, 6 Dec 2014 13:32:29 +0100
Message-Id: <74093DFF-C31A-4CE3-A7DC-429C6CA3C6F4@safe-mail.net>
To: www-validator@w3.org
Hello Mailing List,
I run into a little confusion using the W3 HTML Validator today and thought to ask what you think about this.
Consider the sample html code below:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<link rel="stylesheet" type="text/css" href="some.css" />
	<title>Some Title</title>
	<div id="page">
		<br />
		<br />
		<table id="table1" class="center">
					<iframe id="iframe1" src="anotherpage.html"></iframe>
					Static Text Here<br />

The validator reports 3 Errors in this, all 3 in the IFRAME line.
1., there is no attribute "id"
2., there is no attribute "src"
3., element "iframe" undefined

If I change the DTD to xhtml 1.0 transitional, the same html code validates without errors.
Shouldn't this html code be also validated with the "xhtml 1.0 strict" DTD?
Is there any particular reason an IFRAME tag is not allowed in an "xhtml 1.0 strict" document body?

I am not subscribed to the mailing list. Please CC me directly as keve(at)safe-mail(dot)net!

Keve Nagy * Debrecen * Hungary
Received on Monday, 8 December 2014 17:52:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:46 UTC