Fixed incorrect handling of selects and other elements as designmode. Added fix for multiline selection setting for designmode.