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

Exception message does not supply language or direction metadata #1023

Open
aphillips opened this issue Sep 20, 2021 · 2 comments
Open

Exception message does not supply language or direction metadata #1023

aphillips opened this issue Sep 20, 2021 · 2 comments
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on.

Comments

@aphillips
Copy link

https://www.w3.org/TR/WebIDL/#dfn-DOMException

Exceptions have an error name, a DOMString, which is the type of error the exception represents, and a message, which is an optional, user agent-defined value that provides human readable details of the error.

The message attribute of DOMException does not include language or base direction metadata (see https://w3c.github.io/string-meta). Lack of this metadata can mean that the exception message is not properly rendered. While messages in DOMExceptions are often intended for developer debugging purposes, this is not always true--and developers are people (who speak a language) too.

[I18N-ACTION-1051]

@domenic
Copy link
Member

domenic commented Sep 20, 2021

This is by design, to follow how JavaScript works. I think we would not change anything here without first getting changes in the JavaScript specification, and then we would just follow their lead.

@aphillips
Copy link
Author

My comment here covers this as well.

@plehegar plehegar added the i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on. label Oct 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
i18n-needs-resolution Issue the Internationalization Group has raised and looks for a response on.
Development

No branches or pull requests

3 participants