- Sep 19, 2000
- 10,286
- 145
- 106
I'm sick of all the crappy hackery that has to go into CSS and javascript code to be cross browser compatible. What we need is for Http servers to be smarter. I should be able to create like this
test.css
test.css.IE
test.css.chrome
test.css.firefox
and have the web server automatically pick the right one based off of the browser data. Heck, browser already send browser identification information to the server, why not use it?
Rather than having some bloated thing like this, why not have clean CSS written for the specific non-compliant browsers.
Now, it is true that you'll have multiple versions of the same files, however, I think that is vastly easier to deal with than having one file filled with 500 different hacky things per element.
Same can go with javascript stuff. It should be able to be more modular. Build the base functions to work with different browsers and the upper layer to deal with the base functions. Right now, javascript is more like "Throw every function into one big file".
test.css
test.css.IE
test.css.chrome
test.css.firefox
and have the web server automatically pick the right one based off of the browser data. Heck, browser already send browser identification information to the server, why not use it?
Code:
#wrapper {
border: 10px solid black;
width: 770px; /* IE5.x/win sees this.. */
voice-family: "\"}\"";
voice-family: inherit;
width: 750px; /* ..but not this "standards" width value.. */
}
Rather than having some bloated thing like this, why not have clean CSS written for the specific non-compliant browsers.
Now, it is true that you'll have multiple versions of the same files, however, I think that is vastly easier to deal with than having one file filled with 500 different hacky things per element.
Same can go with javascript stuff. It should be able to be more modular. Build the base functions to work with different browsers and the upper layer to deal with the base functions. Right now, javascript is more like "Throw every function into one big file".