Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document.write() feature #2643

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
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
15 changes: 15 additions & 0 deletions features/document-write.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
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
compat_features:
- api.Document.write
- api.Document.writeln
- api.Document.open
- api.Document.close
40 changes: 40 additions & 0 deletions features/document-write.yml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# 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
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