J'utilise la commande execCommand pour le texte sélectionné 'Hilite' sur la page qui est rendue avec gecko engine/gtkmozembed.execCommand ne fonctionne pas pour le fichier xml
if (!document.execCommand("HiliteColor", false, colour)) {
document.execCommand("BackColor", false, colour);
}
Cela fonctionne très bien avec les pages HTML. Mais j'ai quelques pages XML (livres au format xml). execCommand ne fonctionne pas pour ces pages XML. Il donne un avertissement comme
TypeError: document.execCommand is not a function
Comment puis-je faire execCommand fonctionne sur XML? Merci.