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

Add a hreftranslate attribute #3870

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open

Conversation

dtapuska
Copy link
Contributor

@dtapuska dtapuska commented Jul 31, 2018

Proposal from https://github.com/dtapuska/html-translate

Fixes #2945


💥 Error: Wattsi server error 💥

PR Preview failed to build. (Last tried on Jan 15, 2021, 7:58 AM UTC).

More

PR Preview relies on a number of web services to run. There seems to be an issue with the following one:

🚨 Wattsi Server - Wattsi Server is the web service used to build the WHATWG HTML spec.

🔗 Related URL

Command failed: /home/noderunner/wattsi/bin/wattsi /tmp/upload_ddfb914e13e5e0a99b992bd4b13355e9 (sha not provided) l3ak5afopm default /tmp/upload_0967fd74a93779f08420d6b8d0ada4ff

If you don't have enough information above to solve the error by yourself (or to understand to which web service the error is related to, if any), please file an issue.

@dtapuska
Copy link
Contributor Author

@domenic PTAL

Copy link
Member

@domenic domenic left a comment

Choose a reason for hiding this comment

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

Generally looks good! Some small suggestions on ways to make things clearer, and one question around the IDL attribute casing.

And of course still needs multi-implementer interest before we can merge, but it's great to have the proposed semantics formalized and written down.

source Outdated
@@ -19435,6 +19436,7 @@ interface <dfn>HTMLAnchorElement</dfn> : <span>HTMLElement</span> {
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-a-rel">rel</span>;
[SameObject, PutForwards=<span data-x="dom-DOMTokenList-value">value</span>] readonly attribute <span>DOMTokenList</span> <span data-x="dom-a-relList">relList</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-a-hreflang">hreflang</span>;
[<span>CEReactions</span>] attribute DOMString <span data-x="dom-a-hreftranslate">hreftranslate</span>;
Copy link
Member

Choose a reason for hiding this comment

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

Hmm. Normally the IDL attribute should be camel-cased, hrefTranslate. But for some reason hreflang is not. Unsure which type of consistency we should side with... I'm OK with hreftranslate as the default, unless others have thoughts to the contrary.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I made it hrefTranslate it seems not to deviate from the rest of the examples no?

Copy link
Member

Choose a reason for hiding this comment

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

It deviates from hreflang.

source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
@domenic domenic added addition/proposal New features or enhancements needs implementer interest Moving the issue forward requires implementers to express interest topic: hyperlink labels Aug 1, 2018
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
source Outdated Show resolved Hide resolved
@annevk annevk added the needs tests Moving the issue forward requires someone to write tests label Aug 10, 2018
source Outdated Show resolved Hide resolved
@r12a
Copy link

r12a commented Aug 15, 2018

I still have strong migivings about his attribute and what it is meant to do. Please see #2945 (comment)

@sideshowbarker sideshowbarker added the impacts documentation Used by documentation communities, such as MDN, to track changes that impact documentation label Sep 11, 2018
@chrisdavidmills
Copy link

chrisdavidmills commented Oct 31, 2018

Potential documentation need recorded on MDN content roadmap at https://trello.com/c/CGD3jgk5/128-add-a-hreftranslate-attribute

source Outdated Show resolved Hide resolved
- Adjust IDL to be camelcase
- Add example
- Remove supported text around content attribute
- Fix typo s/nativating/navigating
- Add cross references for attributes
- Fix translate typo
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 impacts documentation Used by documentation communities, such as MDN, to track changes that impact documentation needs implementer interest Moving the issue forward requires implementers to express interest needs tests Moving the issue forward requires someone to write tests topic: hyperlink
Development

Successfully merging this pull request may close these issues.

Hinting at a translation language for outgoing links
7 participants