-
Notifications
You must be signed in to change notification settings - Fork 113
Why "target" attributes are not allowed for anchor "A" elements? #1991
Comments
Because specific values of I don't immediately see a reason why we couldn't rewrite them to have a guest-specific prefix/suffix in the same way we do ids and classes, but currently such methods have to be implemented ad-hoc and supporting this has never been requested before. |
@kpreid thanks, this makes sense. The value of |
It should be already whitelisted — there's a configuration option which defaults to allowing it. Sounds like there's a bug. If you want to dig into the code, look for identifiers |
@kpreid I've been using |
The sanitizer should simply have target whitelisted. The relevant part of the default (only) whitelist is in |
Do you mean that it should be already whitelisted by default? I'm looking into the compiled
From what I can tell, the value of |
Sorry, your analysis is correct. We've got a little too many hardcoded policies... |
@kpreid Do you think this could be fixed? |
@kpreid Friendly ping. Have you given this issue a thought? |
I'd love to see this fixed too. |
I can't seem to find any reason documented for this. Is there some reason "a::target" is blacklisted?
The text was updated successfully, but these errors were encountered: