-
Notifications
You must be signed in to change notification settings - Fork 31
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
Is get()
not explicit enough?
#258
Comments
It should be a method as we want to return a new object each time. We could call it (Currently |
Yes, we agreed that JSON might be too constraining. A potential v2 feature was that other Sanitizers provide callbacks when sanitizing attributes/elements and that can not be represented in JSON. |
If it returns a "Configuration", calling it configuration() would be least surprising. |
I don't like that name. It returns the |
Perhaps leave it as get() and flag it as part of Tag Review? |
Well, shouldn't API designers propose well named methods :) It shouldn't be up to the reviewers. Is it almost like toJSON() if it is really about Sanitizer as a dictionary? |
See #258 (comment). |
During code review, our Firefox webidl reviewers pointed out that it's not entirely intuitive for a function
get()
to return a configuration dictionary.One suggestion was to use a property instead of a function (e.g.,
readonly attribute SanitizerConfig configuration;
), but I believe we had reasons why this ought to be a function?The text was updated successfully, but these errors were encountered: