-
Notifications
You must be signed in to change notification settings - Fork 15
Use respec autolinks and use expected conventions to define elements … #179
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
Conversation
…& attributes Definition conventions aligns with https://tabatkins.github.io/bikeshed/#dfn-contract (which allows for definitions to be properly extracted for use by other specifications) Autolinks (when available) help making the spec resistant to change of anchors, and allows for instance to link to the much-more-reader-friendly multipage version of HTML
Thanks for working on this, I'm happy to rubber-stamp and merge this if you think it's ready. Some comments inline.
Yes, that was the only reason. Just using 'width' unambiguously would be great.
I believe we can try to align with SVG and HTML here. I'm not sure, but it's possible that this was again used to avoid duplicate definitions for e.g.
Agree.
Agree about "presentational hint". Switching to DOM spec for
Switching to level 4 sounds good to me.
Switching to CSS Display sounds good to me.
OK. |
thanks for the quick review! I've pushed a few more commits that implement the proposed additional changes that are ready to use. I believe the PR is in good shape to be merged at this stage. It leaves the following items as to be done potentially at a later stage:
With regard to your question:
I assume it's an editorial bug. |
While it doesn't export it, the HTML spec currently redefines the 'reflect' concept, which creates possibly confusing duplication with the definition in the DOM spec. This proposes to use instead the DOM spec definition. This was noticed in w3c/mathml-core#179
Definition conventions aligns with https://tabatkins.github.io/bikeshed/#dfn-contract (which allows for definitions to be properly extracted for use by other specifications)
Autolinks (when available) help making the spec resistant to change of anchors, and allows for instance to link to the much-more-reader-friendly multipage version of HTML.
This pull request targets minimal changes in the produced spec, but I noted the following possible additional changes worth considering:
mspace@width
andmpadded@width
(and similar pattern for other attributes) was to avoid duplicate definitions; with this new markup, this would no longer be needed (since one unambiguously links to one or the other with[^mspace/width^]
or[^mpadded/width^]
); I didn't remove the convention from the document since I wasn't sure whether there was other reasons for using that convention, but would be happy to follow up with that change<…>
- I haven't changed this in the document, but doing so would allow to simplify a bit some of the changes here (e.g. I wouldn't need to usedata-lt
on the element definitions).dfn
ing locally the global attributes that are shared with HTML.nonce
,data-*
andtabindex
could use the same treatment if/when Rename HTMLOrSVGElement to reflect its wider use in MathML as well whatwg/html#5248 gets mergedvisibility
target CSS 2.1 at the moment in the spec; if they were to target the equivalent in CSS 2.2, or in CSS Display, they could be replaced with autolinksforeignObject
could be turned into an autolink once Impossible to link to camelCase elements speced/respec-web-services#365 is fixed