Probleme bei W3C-Validierung

tluebke

Mitglied
Habe auf einer Internetseite eine Flash-Animation, wie folgt, eingefügt:

Code:
<object
        classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
        codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
        id=Zitate"
        width="250" height="125"
      >
        <param name="movie" value="./images/flash/zitate.swf">
        <param name="bgcolor" value="#FFFFFF">
        <param name="quality" value="high">
        <param name="allowscriptaccess" value="samedomain">
        <embed
          type="application/x-shockwave-flash"
          pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
          name="Zitate von Mary Ward"
          width="250" height="125"
          src="./images/flash/zitate.swf"
          bgcolor="#b8142b"
          quality="high"
          allowscriptaccess="samedomain"
        >
          <noembed>
          </noembed>
        </embed>
      </object>

Seitdem lässt sich die Seite aufgrund von 12 Fehlern (xxx is not a valide attribute) in diesem Codeschnipsel nicht mehr validieren.
Er meckert über alles ,was im <embed>-Tag steht, außerdem noch über id="Zitate" im <onject>-Tag... meint, es wäre nicht mit dem Doctype vereinbar. Wie kann ich das ändern?

Als Doctype nutze ich:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
 
Relativ einfach. Setze deine Flash-Animation einfach in einen I-Frame und zack, ist Deine Webseite wieder valide. Musst bei der Vorgehensweise nur aufpassen, wenn Du Buttons in Deiner Flash-Animation hast (ich sach nur Frames...).

Hoffe, das hilft Dir weiter
 
Hi,

das <embed>-Element war noch nie Bestandteil der w3c-Spezifikation, und erzeugt somit in allen HTML-Varianten invaliden Code.

Wenn du auf den iFrame und die damit möglicherweise verbundenen Komplikationen lieber verzichten möchtest, zumal das Problem der Validität somit lediglich auf ein anderes Dokument "abgewälzt" wird, schau einfach mal in diese Themen rein:

mfg Maik
 
Hallo, ich habe auch eine Validierungsfrage.
Ich will mich grad mit dem ganzen Wordpress-Zeugs vertraut machen.

Nun hab ich ein Tutorial nachgemacht, es funktioniert schon teilweise und es sind ja auch die angeblich validen Tutorial-Unterlagen, aber es kommt folgender Validierungsfehler:

# Error Line 1, Column 1: character "" not allowed in prolog
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3

# Error Line 1, Column 3: XML Parsing Error: Start tag expected, '<' not found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3

Der HTML-Code ist dieser... es ist halt die index-Seite:
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 profile="http://gmpg.org/xfn/11">

	<title>The Blog</title>

	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />	
	<meta name="generator" content="WordPress 2.8" /> <!-- leave this for stats please -->

	<link rel="stylesheet" href="http://localhost/wordpress/wp-content/themes/theblog/css/musterstyle.css" type="text/css" media="screen" />

	<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="http://localhost/wordpress/?feed=rss2" />
	<link rel="alternate" type="text/xml" title="RSS .92" href="http://localhost/wordpress/?feed=rss" />
	<link rel="alternate" type="application/atom+xml" title="Atom 0.3" href="http://localhost/wordpress/?feed=atom" />
	<link rel="pingback" href="http://localhost/wordpress/xmlrpc.php" />

		<link rel='archives' title='July 2009' href='http://localhost/wordpress/?m=200907' />
		<meta name='robots' content='noindex,nofollow' />
<link rel="EditURI" type="application/rsd+xml" title="RSD" href="http://localhost/wordpress/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml" href="http://localhost/wordpress/wp-includes/wlwmanifest.xml" /> 
<link rel='index' title='The Blog' href='http://localhost/wordpress' />
<meta name="generator" content="WordPress 2.8" />

</head>
<body><div id="wrapper">

<div id="header">

<h1><a href="http://localhost/wordpress">The Blog</a></h1>
Das soll der Blog werden
</div>
<div id="container">

	
		<div class="post" id="post-9">

			<h2><a href="http://localhost/wordpress/?p=9" title="third post">third post</a></h2>

			<div class="entry">

				<p>Yet another post. The third post so far.</p>

				<p class="postmetadata">
Filed under: <a href="http://localhost/wordpress/?cat=1" title="View all posts in Uncategorized" rel="category">Uncategorized</a> by fantasmo<br />
<a href="http://localhost/wordpress/?p=9#respond" title="Comment on third post">No Comments »</a>  | <a class="post-edit-link" href="http://localhost/wordpress/wp-admin/post.php?action=edit&amp;post=9" title="Edit post">Edit</a>				</p>

			</div>

		</div>

	
		<div class="post" id="post-3">

			<h2><a href="http://localhost/wordpress/?p=3" title="second post">second post</a></h2>

			<div class="entry">

				<p><img class="alignnone size-medium wp-image-5" title="Tennismaus" src="http://localhost:8502/wordpress/wp-content/uploads/2009/07/Tennismaus-297x300.jpg" alt="Tennismaus" width="297" height="300" />This is the second post. Additional to Hello World.</p>

				<p class="postmetadata">
Filed under: <a href="http://localhost:8502/wordpress/?cat=1" title="View all posts in Uncategorized" rel="category">Uncategorized</a> by fantasmo<br />
<a href="http://localhost/wordpress/?p=3#respond" title="Comment on second post">No Comments »</a>  | <a class="post-edit-link" href="http://localhost/wordpress/wp-admin/post.php?action=edit&amp;post=3" title="Edit post">Edit</a>				</p>

			</div>

		</div>

	
		<div class="navigation">
			<a href="http://localhost/wordpress/?paged=2" >weidaa</a>		</div>

	
</div>

<div class="sidebar">

<ul>


	<li id="search">
		<form method="get" id="searchform" action="http://localhost:8502/wordpress/">
<div>
	<input type="text" value="" name="s" id="s" size="15" /><br />
	<input type="submit" id="searchsubmit" value="Search" />
</div>

</form>	</li>

	<li id="calendar"><h2>Calendar</h2>
		<table id="wp-calendar" summary="Calendar">
	<caption>July 2009</caption>
	<thead>
	<tr>
		<th abbr="Monday" scope="col" title="Monday">M</th>

		<th abbr="Tuesday" scope="col" title="Tuesday">T</th>
		<th abbr="Wednesday" scope="col" title="Wednesday">W</th>
		<th abbr="Thursday" scope="col" title="Thursday">T</th>
		<th abbr="Friday" scope="col" title="Friday">F</th>
		<th abbr="Saturday" scope="col" title="Saturday">S</th>
		<th abbr="Sunday" scope="col" title="Sunday">S</th>

	</tr>
	</thead>

	<tfoot>
	<tr>
		<td colspan="3" id="prev" class="pad">&nbsp;</td>
		<td class="pad">&nbsp;</td>
		<td colspan="3" id="next" class="pad">&nbsp;</td>
	</tr>

	</tfoot>

	<tbody>
	<tr>
		<td colspan="2" class="pad">&nbsp;</td><td>1</td><td>2</td><td>3</td><td>4</td><td>5</td>
	</tr>
	<tr>

		<td id="today"><a href="http://localhost/wordpress/?m=20090706" title="Hello world!, second post, third post">6</a></td><td>7</td><td>8</td><td>9</td><td>10</td><td>11</td><td>12</td>
	</tr>
	<tr>
		<td>13</td><td>14</td><td>15</td><td>16</td><td>17</td><td>18</td><td>19</td>

	</tr>
	<tr>
		<td>20</td><td>21</td><td>22</td><td>23</td><td>24</td><td>25</td><td>26</td>
	</tr>
	<tr>

		<td>27</td><td>28</td><td>29</td><td>30</td><td>31</td>
		<td class="pad" colspan="2">&nbsp;</td>
	</tr>
	</tbody>
	</table>	</li>

	<li class="pagenav"><h2>Pages</h2><ul><li class="page_item page-item-2"><a href="http://localhost/wordpress/?page_id=2" title="About">About</a></li>
</ul></li>
	<li><h2>Categories</h2>
		<ul>
				<li class="cat-item cat-item-1"><a href="http://localhost/wordpress/?cat=1" title="View all posts filed under Uncategorized">Uncategorized</a> (3)
</li>
		</ul>

	</li>

	<li><h2>Archives</h2>
		<ul>
				<li><a href='http://localhost/wordpress/?m=200907' title='July 2009'>July 2009</a></li>
		</ul>
	</li>

	  <li id="linkcat-2" class="linkcat"><h2>Blogroll</h2>

	<ul>
<li><a href="http://wordpress.org/development/">Development Blog</a></li>
<li><a href="http://codex.wordpress.org/">Documentation</a></li>
<li><a href="http://wordpress.org/extend/plugins/">Plugins</a></li>
<li><a href="http://wordpress.org/extend/ideas/">Suggest Ideas</a></li>
<li><a href="http://wordpress.org/support/">Support Forum</a></li>
<li><a href="http://wordpress.org/extend/themes/">Themes</a></li>
<li><a href="http://planet.wordpress.org/">WordPress Planet</a></li>

	</ul>
</li>

	<li><h2>Meta</h2>
		<ul>
			<li><a href="http://localhost/wordpress/wp-admin/">Site Admin</a></li>			<li><a href="http://localhost/wordpress/wp-login.php?action=logout&amp;_wpnonce=047200c5a8">Log out</a></li>
					</ul>
	</li>


</ul>

</div>
<div id="footer">
<p>
Copyright © 2009 <a href="http://localhost:8502/wordpress">The Blog</a>
</p>
</div>

</div></body>

</html>

Ich bin mir eigentlich sicher, dass es nicht an dem Doctype liegt, denn da hatte ich eigentlich noch nie einen Fehler... Vielleicht hats was mit Wordpress und dem PHP-Krempel zu tun?

PS: Warum macht WP eigentlich da was mit Tabellen... ich dachte die Zeiten sind vorbei?!
 
es kommt folgender Validierungsfehler:

# Error Line 1, Column 1: character "" not allowed in prolog
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3

# Error Line 1, Column 3: XML Parsing Error: Start tag expected, '<' not found
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3
Kann ich mit obigen Code nicht bestätigen.
http://validator.w3.org/#validate_by_input -> http://validator.w3.org/check hat gesagt.:
This document was successfully checked as XHTML 1.0 Transitional!
mfg Maik
 
Also, ich hab nochmal probiert...

Bevor ich das hier reingestellt habe, hatte ich im Header, wo Stylesheet & Co aufgerufen werden den Pfad ein klein bisschen geändert, nämlich "localhost" hieß vorher "localhost:8502".
Daran schiens gelegen zu haben... aber trotzdem seltsam irgendwie (wegen diesem ":" etwa)!
 
Zurück