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

"last updated" attribute on <a>nchors? #1587

Open
Wes0617 opened this issue Jul 22, 2016 · 0 comments
Open

"last updated" attribute on <a>nchors? #1587

Wes0617 opened this issue Jul 22, 2016 · 0 comments
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest

Comments

@Wes0617
Copy link

Wes0617 commented Jul 22, 2016

Would make sense to have a "last updated" attribute on links that affects their style through :visited ?

Also useful for search engines' bots.

Imagine one visits the page "ref.html" that contains:

<style>a:visited{color:purple;}</style>
 <a datetime="2016-07-22 00:00Z" href="page.html">Page</a>

And clicks said link. If they visit "ref.html" again they will see the link in purple. If the page author then updates page.html (+ changes the link in ref.html with the new datetime) and the user visits the page again, they will see the link in blue, because what they visited the last time was an older version of the page.

The datetime attribute could also be refreshed through DOM so that user will get immediate feedback on pages that were updated while standing on the referrer page.

The value of the attribute could (possibly) just reflect the HTTP header Last-Modified, I think.

Opinions?

@domenic domenic added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest labels Jul 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest
Development

No branches or pull requests

2 participants