par
AVI3000 » 13 juil. 2007, 09:14
Bonjour,
Ce code ne créé pas l'élément link
$head = $xpath->query('//head')->item(0) ;
$link = $doc->createElement("link") ;
$link ->setAttribute("rel", "stylesheet") ;
$link ->setAttribute("type", "text/css") ;
$link ->setAttribute("href", "css/this.screen.css") ;
$head->appendChild($link);
mais celui-ci crée l'élément xxxlink
$head = $xpath->query('//head')->item(0) ;
$link = $doc->createElement("xxxlink") ;
$link ->setAttribute("rel", "stylesheet") ;
$link ->setAttribute("type", "text/css") ;
$link ->setAttribute("href", "css/this.screen.css") ;
$head->appendChild($link);
un élément xxxlink ne me sert évidemment à rien
par contre link c'est pas la même
