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

Update EIP-1: Add WHATWG as a permissible origin #7117

Merged
merged 1 commit into from
Jun 17, 2023

Conversation

SamWilsn
Copy link
Contributor

@SamWilsn SamWilsn commented Jun 1, 2023

Originally from #6691 by @kdenhartog.

Splitting out so it can be discussed separately.

Changed slightly with my review feedback.

@SamWilsn SamWilsn requested a review from eth-bot as a code owner June 1, 2023 02:41
@github-actions github-actions bot added c-update Modifies an existing proposal t-process labels Jun 1, 2023
@eth-bot
Copy link
Collaborator

eth-bot commented Jun 1, 2023

File EIPS/eip-1.md

Requires 2 more reviewers from @axic, @gcolvin, @lightclient, @Pandapip1

@eth-bot eth-bot changed the title Add WHATWG as a permissible origin Update EIP-1: Add WHATWG as a permissible origin Jun 1, 2023
@eth-bot eth-bot added the e-consensus Waiting on editor consensus label Jun 1, 2023
Copy link
Contributor

@kdenhartog kdenhartog left a comment

Choose a reason for hiding this comment

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

Huge thanks @SamWilsn for fixing these up! LGTM

@g11tech
Copy link
Contributor

g11tech commented Jun 1, 2023

fine by me 👍

Copy link
Member

@Pandapip1 Pandapip1 left a comment

Choose a reason for hiding this comment

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

Are we not going to add rules re: acceptable titles?

@@ -252,6 +252,24 @@ Permitted Networking Specifications URLs must anchor to a specific commit, and s
^https://github.com/ethereum/devp2p/blob/[0-9a-f]{40}/.*$
```

### Web Hypertext Application Technology Working Group (WHATWG)
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
### Web Hypertext Application Technology Working Group (WHATWG)
### WHATWG

I weakly prefer the abbreviation.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We require authors to expand abbreviations, so I figured we should probably too 🤣

@SamWilsn SamWilsn mentioned this pull request Jun 2, 2023
9 tasks
@SamWilsn
Copy link
Contributor Author

SamWilsn commented Jun 2, 2023

Are we not going to add rules re: acceptable titles?

Can we do that in a separate PR? I think it'll require some thought (eg. subsections & anchor links, colons/dashes/spaces, just the identifier vs. the whole title, etc.)

@kdenhartog
Copy link
Contributor

Should we be adding a comment regarding this?
Screenshot 2023-06-06 at 12 01 51 PM

It seems like a bad idea to do exactly what the authoritative body on the standard is telling us not to do.

@SamWilsn
Copy link
Contributor Author

SamWilsn commented Jun 6, 2023

Should we be adding a comment regarding this?

They do an excellent job explaining in their banner! We have markdown-rel-links that sort of explains our reasoning behind our general external links policy. Would you prefer something in EIP-1?

It seems like a bad idea to do exactly what the authoritative body on the standard is telling us not to do.

I think we fit into the "historical reference" exception?

Imagine some EIP gets finalized, and on-chain implementations written. Some years go by, and the WHATWG standard has evolved, but the contracts are frozen on-chain.

A new implementer comes along. If we link to the living standard, then important context will be lost, but if we link to the commit, the implementer can make an informed decision about what to do: use the old version or the current living edition.

@kdenhartog
Copy link
Contributor

Yeah I think a little note in here to clarify this in EIP-1 would be good to at least document our rationale for using commitments. It also just occurred to me that if they rewrite their commit history (I'd venture to guess they won't do this) then some commit links could be broken here. So I don't think we'll find a perfect solution here anyways and the next best thing is probably the commit and document why were ignoring their suggestions approach. We may find this wasn't the right approach later and have to update to the living standards link in the future, but we can cross that bridge when we need to.


[HTML](https://html.spec.whatwg.org/commit-snapshots/578def68a9735a1e36610a6789245ddfc13d24e0/)

Permitted WHATWG specification URLs must anchor to a specification defined in the `spec` subdomain (idea specifications are not allowed) and to a commit snapshot, and so must match this regular expression:
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Permitted WHATWG specification URLs must anchor to a specification defined in the `spec` subdomain (idea specifications are not allowed) and to a commit snapshot, and so must match this regular expression:
Permitted WHATWG specification URLs must anchor to a specification defined in the `spec` subdomain (idea specifications are not allowed) and to a commit snapshot. While anchoring to a particular snapshot is not recommended by WHATWG, this has been defined to do so still so that readers of specifications can be aware of the exact version of the WHATWG living standard being referenced by the author at the time they linked to it in an immutable way. This way readers can choose to implement against the version referenced by the author or the updated living standard if they choose. As such, the link must match this regular expression:

Copy link
Contributor

Choose a reason for hiding this comment

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

@SamWilsn this suggestion should address my last comment

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated, with different wording. What do you think of:

Although not recommended by WHATWG, EIPs must anchor to a particular commit so that future readers can refer to the exact version of the living standard that existed at the time the EIP was finalized. This gives readers sufficient information to maintain compatibility, if they so choose, with the version referenced by the EIP and the current living standard.

Copy link
Contributor

Choose a reason for hiding this comment

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

LGTM for that text

@SamWilsn SamWilsn merged commit 71dc973 into ethereum:master Jun 17, 2023
9 checks passed
@SamWilsn SamWilsn deleted the sdo/whatwg branch June 17, 2023 05:05
streamnft-tech pushed a commit to streamnft-tech/EIPs that referenced this pull request Oct 27, 2023
RaphaelHardFork pushed a commit to RaphaelHardFork/EIPs that referenced this pull request Jan 30, 2024
GAEAlimited pushed a commit to GAEAlimited/EIPs that referenced this pull request Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c-update Modifies an existing proposal e-consensus Waiting on editor consensus t-process
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants