-
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
Spec bugs / clarifications #249
Comments
Config procesing: We currently throw when an element or global attribute is listed in both allow & remove, but not for per-element attributes. new Sanitizer({elements: ["p"], removeElements: ["p"]}) // throws
new Sanitizer({elements: [{name: "p", attributes: ["id"], removeAttributes: ["id"]}]}) // does not throw. I think that's just an oversight. |
"comments" and "dataAttribute" keys in the config default to I thought we had decided this differently; but not sure I remember correctly. bla.setHTML("<p>hello <!-- world -->", {}) // Comment is dropped: <p>hello. |
I could see someone arguing that the second case could work for clear semantics on which of the properties is first being checked, leading to either Not sure what to prefer, to be honest.
Wait, what is
In that case, yes. We should allow comments and data attributes with |
@mozfreddyb As for |
Ah, good catch. I said The former will use the new default
|
Collection of issues I encountered when cross-checking our (early-stage) implementation & test results against the spec.
These might well be bugs in the test suite or impl, rather than the spec, though. I'm just listing things here so we won't forget...
The text was updated successfully, but these errors were encountered: