DEV Community

Discussion on: Why delete my comment?

 
sunflower profile image
sunflowerseed • Edited

First of all, it was CSS and HTML adjustments for IE, and I don't want to make a special ie.css to "override the CSS" so that if Chrome / Firefox, then it is one way, and if IE, then another way. So I just want to make a solution that works in all browsers. So how do I make the CSS and HTML have "IE names"?

Second, the way you wrote, it is "catering for browser", and it is not recommended usually. We should just use feature detection. The kind of code hackAroundForIE_WontWorkWithoutIt is kind of ugly and pretty soon the code could be hackAroundForSafari_WontWorkWithoutIt and hackAroundForOpera_WontWorkWithoutIt and it is a mess.

Third, even if she tweaks my code, go ahead convey the idea that the method was to adjust to all browsers including IE. It wouldn't be good to simply delete the comment without doing anything at all. Other programmers can come in and "refactor" it back to the simpler way that has problems for IE without knowing it.