Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions features/document-write.yml
Original file line number Diff line number Diff line change
@@ -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
48 changes: 48 additions & 0 deletions features/document-write.yml.dist
Original file line number Diff line number Diff line change
@@ -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
3 changes: 0 additions & 3 deletions features/dom.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
15 changes: 0 additions & 15 deletions features/dom.yml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down