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

"Only supported for HTMLDocument" notes inconsistently applied #10682

Open
foolip opened this issue May 31, 2021 · 4 comments
Open

"Only supported for HTMLDocument" notes inconsistently applied #10682

foolip opened this issue May 31, 2021 · 4 comments
Assignees
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API

Comments

@foolip
Copy link
Contributor

foolip commented May 31, 2021

#6839 fixed a bunch of entries for things that have been moved from HTMLDocument to Document, but there are still lots of APIs which were once on HTMLDocument which haven't gotten this treatment.

https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=9330 is a test for all the entries that are currently in Document.json. As an example document.head seems to have been moved from HTMLDocument to Document in Firefox 61.

This is fairly well suited to systematic testing, but https://mdn-bcd-collector.appspot.com/ doesn't generate the variant tests that would be needed to do this. It's also doubtful that it's worth automating, since it would be fixed once and then not need any further testing.

@foolip foolip added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label May 31, 2021
foolip added a commit to foolip/browser-compat-data that referenced this issue May 31, 2021
Fixes mdn#6839.

mdn#10682 tracks using
this structure consistently where there's currently just a simple
statement.
ddbeck pushed a commit that referenced this issue Jun 2, 2021
…10683)

Fixes #6839.

#10682 tracks using
this structure consistently where there's currently just a simple
statement.
@caugner
Copy link
Contributor

caugner commented Jan 9, 2025

For what it's worth, here's a slightly updated version of the Live DOM Viewer test with ✅ and ❌ instead of "true" and "false" to make it more easy to spot the differences.

Edit: And here's a test that only shows the inconsistencies, i.e. omitting what's supported in all or none: https://software.hixie.ch/utilities/js/live-dom-viewer/?saved=13374

@caugner
Copy link
Contributor

caugner commented Jan 9, 2025

I have gathered data in this repo.

For example, this is the summary for Firefox: https://github.com/caugner/document-members/blob/main/issues/firefox.txt

Here's what Firefox version fixed which members:

Member Added Fixed
alinkColor 1 69
all 24 70
anchors 1 61
applets 1 61
bgColor 1 69
body 1 60
captureEvents 1 70
clear 1 70
close 1 69
compatMode 1 19
cookie 1 68
designMode 1 69
domain 1 69
embeds 1 61
execCommandShowHelp 1 14
execCommand 1 69
fgColor 1 69
forms 1 61
getElementsByName 1 58
getSelection 1 57
head 4 61
height 1 6
images 1 61
linkColor 1 69
links 1 61
mozSyntheticDocument 22 23
open 1 69
plugins 1 61
queryCommandEnabled 1 69
queryCommandIndeterm 1 69
queryCommandState 1 69
queryCommandSupported 1 69
queryCommandText 1 14
queryCommandValue 1 69
releaseEvents 1 70
routeEvent 1 25
scripts 9 61
URL 1 19
vlinkColor 1 69
width 1 6
writeln 1 69
write 1 69

@caugner
Copy link
Contributor

caugner commented Jan 9, 2025

This is the summary for Chrome: https://github.com/caugner/document-members/blob/main/issues/chrome.txt

Here's what Chrome version fixed which members:

Member Added Fixed
alinkColor 1 64
all 1 64
bgColor 1 64
captureEvents 1 64
clear 1 64
close 1 45
compatMode 1 8
designMode 1 36
dir 1 36
embeds 1 36
fgColor 1 64
height 1, 19 17, 31
linkColor 1 64
open 1 45
plugins 1 36
releaseEvents 1 64
scripts 1 36
vlinkColor 1 64
width 1, 19 17, 31
write 1 45
writeln 1 45

@caugner
Copy link
Contributor

caugner commented Jan 9, 2025

Here's a better overview for Chrome, Firefox and Safari: https://github.com/caugner/document-members/blob/main/SUMMARY.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API
Projects
None yet
Development

No branches or pull requests

2 participants