-
Notifications
You must be signed in to change notification settings - Fork 74
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
Create commonly used and harmless constants like TrustedHTML.EMPTY #95
Comments
Also |
The EMPTY constants seem fine but I'm opposed to TrustedURL.HASH. There's no reason to use |
Filed a request for |
Would a solution to issue #96 obviate this? |
I think so. I'd lean towards making these sorts of constants not part of the standard, but rather leave it to a (reference) builder library to provide. Either as explicit symbols, or via template literals, which would allow you to write |
I'm for keeping |
The empty HTML constant was implemented in http://crbug.com/936436. Due to naming conventions and other concerns it will be available at the factory level, so currently:
I'll follow up with the polyfill implementation. |
It's often the case that the applications would want an empty string to assign it to
innerHTML
. Consider exposing a TrustedHTML wrapping an empty string without needing a policy to create it, e.g. as a static property ofTrustedHTML
object.The text was updated successfully, but these errors were encountered: