1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:27:45 +00:00

LibWeb: Add stubs for document.write and document.writeln

ACID3 test page throws exception about document.write. Let's at least
get rid of it by defining these stubs.

I added document.writeln too because it is similar.
This commit is contained in:
Maciej 2022-02-15 17:36:27 +01:00 committed by Tim Flynn
parent deba345ca7
commit ed33ea13ab
3 changed files with 19 additions and 0 deletions

View file

@ -16,6 +16,9 @@ interface Document : Node {
readonly attribute Window? defaultView;
undefined write(DOMString... text);
undefined writeln(DOMString... text);
attribute DOMString cookie;
readonly attribute USVString referrer;