merge mediawiki patch from lukin.a.i
attach original attr in data-xxx when replacing
usecache to speedup