I agree with Pat. At this point in the game, writing your own code to deal with cross-browser compatibility, given that the available Javascript frameworks do not make much sense. There are frameworks for almost every taste (some are really quite tiny), and they are focused on really abstracting from all the differences between browsers. They do more tests than you probably do.
Something like jQuery or Yahoo YUI (think of how many people got into Yahoo Javascript in a day and the variety of browsers) just tested more expensive than any piece that you or I came up with.
source
share