mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 07:03:29 +00:00
DOM: improve innerHTML setter test
This commit is contained in:
@@ -460,6 +460,8 @@ pub fn testExecFn(
|
||||
|
||||
.{ .src = "let h = document.getElementById('para-empty')", .ex = "undefined" },
|
||||
.{ .src = "const prev = h.innerHTML", .ex = "undefined" },
|
||||
.{ .src = "h.innerHTML = '<p>hello world</p>'", .ex = "<p>hello world</p>" },
|
||||
.{ .src = "h.innerHTML", .ex = "<p>hello world</p>" },
|
||||
.{ .src = "h.innerHTML = prev; true", .ex = "true" },
|
||||
.{ .src = "document.getElementById('para-empty').innerHTML.trim()", .ex = "<span id=\"para-empty-child\"></span>" },
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user