Hallo, ich habe ein problem mit dem (Typo3-)XHtml.
In meinem php-Script gebe ich zwei Buttons aus:
$content='<input type="button" value="'.LABEL_EDIT_BUTTON.'" onclick="javascript:self.location.href=\'index.php?id='.$id.'&action=edit&no_cache=1\'" />
<input type="button" value="'.LABEL_DELETE_BUTTON.'" onclick="javascript:self.location.href=\'index.php?id='.$id.'&action=delete&no_cache=1\'" />';
[...]
$content = $this->stdWrap($content,$conf["stdWrap."]);
Im Quelltext sieht das ganze dann so aus:
<input type="button" value="Bearbeiten" onclick="javascript:self.location.href='index.php?id=24&action=edit&no_cache=1'" />
<input type="button" value="Löschen" onclick="javascript:self.location.href='index.php?id=24&action=delete&no_cache=1'" />
Soweit, so gut. Nun zu meinem Problem:
Schalte ich nun das XHtml ein mit:
config.doctype = xhtml_trans
config.xhtml_cleaning = all
Dann zerhackt es mir den Html-Code:
<input type="button" value="Bearbeiten" onclick="javascript:self.location.href" />
<input type="button" value="Löschen" onclick="javascript:self.location.href=" indexphpid="24&action" />
Weiß jemand, woran das liegen kann bzw. was ich ändern muss, dass ich auch unter XHtml einen vernünftigen Code ausgegeben bekomme?
Liebe grüße Thomas