bonjour
j'ai un script qui remplace le fichier css par un autre
j'ai ces 3 erreurs sur cette portion, comment y remedier? merci
Code : S�lectionner tout - Visualiser dans une fen�tre � part
1
2
3
4
5
6
7
8
9 newname = function () { "use strict"; createfile(newname); allsuspects[i].parentNode.replaceChild(newelement, allsuspects[i]); for (i = allsuspects.length; i >= 0; i--) { //search backwards within nodelist for matching elements to remove if (allsuspects[i] && allsuspects[i].getAttribute(targetattr) !== null && allsuspects[i].getAttribute(targetattr).indexOf(oldname) !== -1) { } }Unexpected 'for'.
for (i = allsuspects.length; i >= 0; i--) { //search backwards within nodelist for matching elements to remove
49.43
Unexpected expression '--' in statement position.
for (i = allsuspects.length; i >= 0; i--) { //search backwards within nodelist for matching elements to remove
50.147
Empty block.
if (allsuspects[i] && allsuspects[i].getAttribute(targetattr) !== null && allsuspects[i].getAttribute(targetattr).indexOf(oldname) !== -1) {
Partager