javascript - Different browser's behaving in different way for same script -


i facing strange behavior of different browser.i have fallowing condition in javascript working fine in mozilla , chrome not in ie.

if(svalue.indexof('<br>')!=-1){  // } 

when changed code in fallowing way , it's working fine in ie not in mozilla , chrome.

if(svalue.indexof('<br>')!=-1){  // } 

anybody knows why it's happening this?. in advance!!!!

i hazard guess getting browser serialize dom html value svalue. html case insensitive, browsers free use whatever case tag names.

the solution string.tolowercase()


Comments

Popular posts from this blog

sql server - python to mssql encoding problem -

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -