Fix quirksmode

Same with this one - merge it and use the pandell fork as our primary repo for this lib.