libs/cbi: Compatibility changes for non-standards-compliant browsers