0
0
mirror of https://github.com/rkd77/elinks.git synced 2025-09-21 19:46:23 -04:00

[mujs] element.outerHTML setter

This commit is contained in:
Witold Filipczyk
2024-05-08 18:57:11 +02:00
parent 58bf489719
commit 16cbdc2501
2 changed files with 147 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ function aa()
function bb()
{
const container = document.getElementById("container");
const d = document.getElementById("d");
var container = document.getElementById("container");
var d = document.getElementById("d");
console.assert(container.firstElementChild.nodeName === 'DIV', 'DIV');
d.outerHTML = '<p>' + d.outerHTML + '</p>';
console.assert(container.firstElementChild.nodeName === 'P', 'P');