[Xul] balises html rendues
Bonjour
le sujet http://www.developpez.net/forums/d10...-html-fenetre/ en parle mais ne résoud pas
j'ai une extension firefox
test.xul:
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
|
<window id = "test"
title = "rtsr"
orient = "vertical"
xmlns = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
xmlns:html = "http://www.w3.org/1999/xhtml">
<hbox flex="1">
<vbox flex="1">
<groupbox id="group_payload" flex="1">
<caption id="info" label="Payload"/>
<html:textarea id="packet" readonly="true" style="background-color: white; width: 100%; height: 100%; font-family: monospace;"/>
</groupbox>
</vbox>
</hbox>
</window> |
et du js qui peut faire:
Code:
1 2
|
document.getElementById("packet").value += "<b>Hello !</b>"; |
mais les baslises html ne sont pas interpretées dans la fenetre xul
meme en mettant
Code:
1 2
|
document.getElementById("packet").value += "<html:b>Hello !</html:b>"; |