diff --git a/features/document-write.yml b/features/document-write.yml new file mode 100644 index 00000000000..5a78b895d78 --- /dev/null +++ b/features/document-write.yml @@ -0,0 +1,19 @@ +name: document.write() +description: The `document.open()`, `document.write()`, `document.writeln()`, and `document.close()` methods write content to a document, possibly while that document is still loading. +spec: https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html +discouraged: + # The spec doesn't actually discourage against open and close, but these methods are + # really only useful for writing anyway, so we're marking the whole feature as discouraged. + according_to: + - https://html.spec.whatwg.org/multipage/dynamic-markup-insertion.html#document.write() + alternatives: + - dom +status: + compute_from: api.Document.write +compat_features: + - api.Document.write + - api.Document.write.accepts_TrustedHTML + - api.Document.writeln + - api.Document.writeln.accepts_TrustedHTML + - api.Document.open + - api.Document.close diff --git a/features/document-write.yml.dist b/features/document-write.yml.dist new file mode 100644 index 00000000000..e11f48b1d31 --- /dev/null +++ b/features/document-write.yml.dist @@ -0,0 +1,48 @@ +# Generated from: document-write.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: + chrome: "45" + chrome_android: "45" + edge: "12" + firefox: "69" + firefox_android: "79" + safari: "11" + safari_ios: "11" +compat_features: + # baseline: high + # baseline_low_date: 2020-07-28 + # baseline_high_date: 2023-01-28 + # support: + # chrome: "45" + # chrome_android: "45" + # edge: "12" + # firefox: "69" + # firefox_android: "79" + # safari: "11" + # safari_ios: "11" + - api.Document.close + - api.Document.open + - api.Document.writeln + + # ⬇️ Same status as overall feature ⬇️ + # baseline: false + # support: + # chrome: "45" + # chrome_android: "45" + # edge: "12" + # firefox: "69" + # firefox_android: "79" + # safari: "11" + # safari_ios: "11" + - api.Document.write + + # baseline: false + # support: + # chrome: "86" + # chrome_android: "86" + # edge: "86" + - api.Document.write.accepts_TrustedHTML + - api.Document.writeln.accepts_TrustedHTML diff --git a/features/dom.yml b/features/dom.yml index b1b43bedefa..5bad36f79d0 100644 --- a/features/dom.yml +++ b/features/dom.yml @@ -73,7 +73,6 @@ compat_features: - api.Document.characterSet - api.Document.childElementCount - api.Document.children - - api.Document.close - api.Document.compatMode - api.Document.contentType - api.Document.createAttribute @@ -113,7 +112,6 @@ compat_features: - api.Document.lastElementChild - api.Document.lastModified - api.Document.links - - api.Document.open - api.Document.plugins - api.Document.prepend - api.Document.querySelector @@ -124,7 +122,6 @@ compat_features: - api.Document.replaceChildren - api.Document.scripts - api.Document.title - - api.Document.writeln - api.DocumentFragment - api.DocumentFragment.DocumentFragment - api.DocumentFragment.append diff --git a/features/dom.yml.dist b/features/dom.yml.dist index 4a5e8355fc2..77e5a0222ea 100644 --- a/features/dom.yml.dist +++ b/features/dom.yml.dist @@ -1265,21 +1265,6 @@ compat_features: # safari_ios: "10.3" - api.Document.designMode - # baseline: high - # baseline_low_date: 2020-07-28 - # baseline_high_date: 2023-01-28 - # support: - # chrome: "45" - # chrome_android: "45" - # edge: "12" - # firefox: "69" - # firefox_android: "79" - # safari: "11" - # safari_ios: "11" - - api.Document.close - - api.Document.open - - api.Document.writeln - # baseline: high # baseline_low_date: 2020-10-20 # baseline_high_date: 2023-04-20