Skip to content

Document Body.p.formData as always rejecting#6619

Merged
ddbeck merged 1 commit intomdn:masterfrom
foolip:safari-no-formData
Sep 2, 2020
Merged

Document Body.p.formData as always rejecting#6619
ddbeck merged 1 commit intomdn:masterfrom
foolip:safari-no-formData

Conversation

@foolip
Copy link
Contributor

@foolip foolip commented Aug 31, 2020

Even though it doesn't work at all, it should be partial_implementation
per https://github.com/mdn/browser-compat-data/blob/master/docs/data-guidelines.md#non-functional-defined-names-imply-partial_implementation

This is a follow-up to #6616.

@github-actions github-actions bot added the data:api Compat data for Web APIs. https://developer.mozilla.org/docs/Web/API label Aug 31, 2020
@foolip
Copy link
Contributor Author

foolip commented Aug 31, 2020

@ddbeck can you advise on how you'd like to handle this? It didn't work, but yet it was there and would break feature detection. Thus knowing about it is somewhat useful to web developers, but tooling using BCD might be better off thinking that it's not supported at all.

Copy link
Contributor

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh, this is such a weird thing. Weird things make for weird data.

We have a guideline that's supposed to cover a situation like this: https://github.com/mdn/browser-compat-data/blob/master/docs/data-guidelines.md#non-functional-defined-names-imply-partial_implementation After re-reading the PR which prompted it, I think I still come down in the same place as before: we should report this as partial_implementation. It has an implementation, even if that implementation is non-standard (NotSupportedError notwithstanding).

That said, the new note here is much more descriptive. I think that's the core of the thing (it's going to be weird either way, but a good note helps).

Of course, this will be much friendlier as a table when Safari has a functioning release.

@foolip foolip force-pushed the safari-no-formData branch from 5d15614 to 91fc2f7 Compare September 2, 2020 08:37
Even though it doesn't work at all, it should be partial_implementation
per https://github.com/mdn/browser-compat-data/blob/master/docs/data-guidelines.md#non-functional-defined-names-imply-partial_implementation

This is a follow-up to mdn#6616.

Co-authored-by: Daniel D. Beck <daniel@ddbeck.com>
@foolip foolip force-pushed the safari-no-formData branch from 91fc2f7 to 7a491c5 Compare September 2, 2020 08:40
@foolip
Copy link
Contributor Author

foolip commented Sep 2, 2020

Thanks @ddbeck! I don't know that I agree with https://github.com/mdn/browser-compat-data/blob/master/docs/data-guidelines.md#non-functional-defined-names-imply-partial_implementation in this case, but we don't have a perfect way to represent "feature detection would suggest it exists but it doesn't work at all" in the data, so I'm not going to try to overturn the guideline. Once this is shipped in Safari, which is soon, the data will look OK to MDN readers.

Do you think we should have an issue to collect cases that break feature detection, to see if there are enough to warrant representing it in the data?

@ddbeck
Copy link
Contributor

ddbeck commented Sep 2, 2020

Do you think we should have an issue to collect cases that break feature detection, to see if there are enough to warrant representing it in the data?

Yes, I think it would be a good idea to collect such cases. I'd be open to revising the guidelines around this stuff, if we had a better idea of what's affected.

For what it's worth, my thinking on this was mainly influenced by no-op CSS values (where no-op and invalid behave rather differently). Thinking on it now, it might make sense to have different guidelines for CSS and APIs. Having a list of known-problematic features would probably make it a lot easier to document the distinction (and encourage us to be a bit more prescriptive about what the notes would say).

Copy link
Contributor

@ddbeck ddbeck left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, @foolip!

@ddbeck ddbeck merged commit 9128c29 into mdn:master Sep 2, 2020
@foolip foolip deleted the safari-no-formData branch September 2, 2020 10:47
@foolip
Copy link
Contributor Author

foolip commented Sep 2, 2020

I've filed #6636. I know there are plenty of these, but won't hunt them all down now.

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

Successfully merging this pull request may close these issues.

3 participants