private modification of litehtml (for wxWidgets binding)