-
Notifications
You must be signed in to change notification settings - Fork 19
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
Aligned WebIDL proposal with recent discussions #224
Conversation
Moved from USVString to DOMString everywhere Pluralize metadata that can contain multiple values (authors) Added support for TOC
For now, I'm still using Should we align on this term as well? |
|
(Admin remark: I wonder whether it wouldn't be better to merge this PR with #221) as on bigger PR; the two are fairly closely related... Or merge them into the master pretty much one after the other. @TzviyaSiegman @GarthConboy , what do you think? |
@iherman when I first drafted the WebIDL, I mostly thought about this structure as a link. For me, a link is a more natural fit than similar structures in schema.org. In HTTP, HTML, Atom or even EPUB, the link element remains mostly the same thing with only small differences. If we align with the schema.org terms, then I agree that we should fully align. That said, these terms feel more awkward to me than what we had before: I prefer Right now, this structure is used for:
We could have separate structures for each of these elements, but I don't think there's a strong case for it. The only differences between
For the rest:
I would prefer keeping a single structure for now and only divide things into two different structures once we have a strong case for it. |
@HadrienGardeur o.k. let us have one structure on the WebIDL level. (And yes, I was/am also a bit uncomfortable using That being said, if I translate this to JSON-LD structures, adding the children may be unnecessary. On the manifest level the TOC is 'just' a link to an HTML element somewhere, meaning that it does not have any 'structure' on the JSON-LD level. I will try to find some more time expanding #221 to include that, which would mean defining the reading order and the resources a breeze, except that the issue of where the |
I was wondering about this. In the infoset TOC is clearly a link to an HTML table of contents, but in the IDL the TOC member is described as "Contains the table of contents." |
@iherman WebIDL and JSON-LD are not necessarily meant to be the same. For the ToC specifically, in WebIDL we'll end up with the results of parsing an HTML document. Regarding rel values:
|
@HadrienGardeur I have the impression we are violently agreeing:-) |
@HadrienGardeur looking that schema.org definition of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Based on the F2F and post-F2F calls, I’ve aligned the WebIDL a bit more with schema.org.
This PR also contains a first take on handling the TOC in the WebIDL, using a tree structure and a single WebIDL dictionary.
Preview | Diff