- Notifications
You must be signed in to change notification settings - Fork302
Fix #11 by escaping enough to be safe in legacy browsers#95
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Fix #11 by escaping enough to be safe in legacy browsers#95
Uh oh!
There was an error while loading.Please reload this page.
Conversation
hoppipolla-critic-bot commentedJul 19, 2013
Critic review:https://critic.hoppipolla.co.uk/r/227 This is an external review system which you may optionally use for the code review of your pull request. |
gsnedders commentedSep 19, 2013
The remaining failures are now-bogus tests in html5lib-tests (which expect spec behaviour by default, and not legacy-safe behaviour by default (which we want because of#12 — to be secure by default)). |
b0eddff to791533eCompare791533e tod87ca9bCompared87ca9b to6ddce87Comparecodecov-io commentedMay 11, 2016 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Current coverage is89.37%@@ master #95 diff @@========================================== Files 50 50 Lines 6796 6809 +13 Methods 0 0 Messages 0 0 Branches 1318 1321 +3 ==========================================+ Hits 6071 6085 +14+ Misses 555 553 -2- Partials 170 171 +1
|
… per specThis also moves to using re, which seems far cleaner than the reduce-basedsearch previously used.
a30eb28 to15ff801Compare…legacy browsersThese are mostly out of the market now, so this isn't massivelyneeded any more; nevertheless, avoiding XSS as much as possible isinevitably desirable.This alters the API so that quote_attr_values is now a ternarysetting, choosing between legacy-safe behaviour, spec behaviour, andalways quoting.
8765511 to9b8d8ebCompare
#11 given this isn't picked up from the title