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 Collection Interface #3

Closed
dauwhe opened this issue Jul 5, 2017 · 3 comments
Closed

Document Collection Interface #3

dauwhe opened this issue Jul 5, 2017 · 3 comments

Comments

@dauwhe
Copy link
Contributor

dauwhe commented Jul 5, 2017

From @dauwhe on June 27, 2017 17:12

Our White Paper talks about the need for an interface and API for a collection of web resources. So really all we have to do is figure this out:

interface Collection: Node {
[SameObject] readonly attribute DOMImplementation implementation;
  readonly attribute USVString URL;
  readonly attribute USVString collectionURI;
  readonly attribute USVString origin;
  readonly attribute DOMString compatMode;
  readonly attribute DOMString characterSet;
  …a few missing details :)
};

Perhaps something like this, more than anything else we are discussing, is what it means for publications to be a first-class citizen of the web.

Copied from original issue: w3c/publ-wg#13

@dauwhe
Copy link
Contributor Author

dauwhe commented Jul 5, 2017

From @GarthConboy on June 27, 2017 18:17

Though it is worth noting that we purposefully removed a reference to such APIs from our charter during drafting in an effort to trim our scope. Doesn't mean we can't expand to such APIs (Collection API, Publication object model), but it doesn't seem a required deliverable.

@dauwhe
Copy link
Contributor Author

dauwhe commented Jul 5, 2017

From @baldurbjarnason on June 28, 2017 1:13

My preference would be to punt any talk about such an API down the road, largely because if we let it wait a bit, the odds of us being able to do an API like that well increase dramatically.

Once you have a JSON-based manifest (or any sort of manifest JS in the browser can parse) then we can start experimenting with writing JS libraries that offer such an API. And if those work, then we can use that experience to polyfill the API to see what that would work like. And if that works, and if it poses to offer an actual advantage over external libraries, then we can put together a spec based on our experience.

So, my suggestion is to put it on the back burner.

@iherman
Copy link
Member

iherman commented May 31, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants