-
Notifications
You must be signed in to change notification settings - Fork 150
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.monetization
vs global
#24
Comments
The decision about where to put this was not strongly sided either way. If it's better as a stand-alone global then let's make it a global. |
@marcoscaceres |
Yes, putting something in the global namespace would be my preference. |
And here: To quote @justmoon from comments above:
|
Yeah, I'm not sure. I wasn't really around for the beginnings of the spec, but I do recall reading some discussion when starting up. Tracked it down to here: interledger/rfcs#500 (comment) |
Thanks again for the info :) |
Bit of both... we generally like to put things on the document that directly affect the Document. You can see what I mean by looking at the interface definition: https://html.spec.whatwg.org/#the-document-object In most cases, the methods and attributes affect the Document directly in some meaningful way. Monetization doesn't affect the Document or reflect some sate of the document, so should probably not be hung on that interface. |
document.monetization
vs global
PROPOSALBased on the discussion so far we should move the We can leave the existing This would also allow us to define a new API shape that takes into account the various other suggestions such as:
Please respond to this proposal with either an 👍 or a 👎 If you are 👎 on this proposal please provide rationale below |
End of the day tired, but I'm in favor of this: I can't imagine doing the donkey work of getting this working being that hard. For:
Against:
Generally, the end users (i.e. extension users) are going to have the most up-to-date extension released due to automatic updates. Integrators are going to have a less easy time of it. Putting some thought into release management/explicit api versioning might help us (document.monetization ~= v2, window.monetization ~= v3 is only implied) e.g. // the first thing that comes to mind, but an illustration of what I mean
window.monetization.draft1.monetizationStream(...) |
I have a preference for holding off these renaming-type changes for the last minute so that we can group them all together |
CONCLUSION: Move |
it still feels safer to put it on Sorry also about not responding above. There were other issues too, with Anyway, the point in kinda mute if we are willing to shift it elsewhere. |
I do wonder if |
Resolved by #193 |
From web-monetization created by marcoscaceres: adrianhopebailie/web-monetization#23
Wondering what the rationale was for attaching monetization to the
Document
object? It doesn't really feel like the right place to attach this, as monetization doesn't itself affect the document or have anything specifically to do with the document interface. We should consider maybe having monetization either on Navigator or its ownMonetization
namespace.The text was updated successfully, but these errors were encountered: