Is it possible to write a JavaScript library that is compatible with all browser standards?

I am not a JavaScript widget, but is it possible to create one embeddable JavaScript file that is compatible with all browser standards? How is the collection of all the well-known JavaScript hacks that cause each browser to correctly interpret the code?

For example, IE6 does not recognize a :hoverCSS pseudo-class for anything other than links, but there is a JavaScript file that finds all the links to it :hoverand applies a hack that forces IE6 to do it right, allowing me to use the hover command as I should.

There is an incredible amount of time (and therefore money) that every webmaster must spend learning all these hacks. Imagine if there was an open source project where all you have to do is add one line to the heading embed code, and then they can freely encode their site to accepted web standards (XHTML Strict, CSS3).

In addition, it will serve as an incentive for web browsers to follow standards or get stuck with a slower browser due to all JavaScript executable code.

So is this possible?

+5
source share
7 answers

In addition, it will serve as an incentive for web browsers to follow standards or get stuck with a slower browser due to all JavaScript executable code.

... . JS, , . PNG IE6: , , .

.

, script to , , . , : , . , , , , , / .

, . , ...; -)

+4

jQuery, javascript

explorercanvas canvas HTML5 IE.

+3

, , . -, reset .

+1
+1

javascript-, ,

: , , , .

javascript, jQuery.

css, /IE7/.

css, javascript. , , . ie6, ie7 .. . .

EDIT: ( , , IE , , css - IMO).

+1

, . javascript , , ...

JQuery.

0

JavaScript 1.4 Array, . , Netscape 4.0 Internet Explorer 4.0. , , .

Post-netscape, JavaScript. , Array 100% JavaScript-.

http://openjsan.org/doc/j/jh/jhuni/StandardLibrary/1.81/index.html

, , , .


, DOM , . VML, Canvas , Internet Explorer / , VML - , Canvas...

http://code.google.com/p/explorercanvas/

Flash/Silverlight: , Canvas, , . , , .

http://www.schillmania.com/projects/soundmanager2/

DOM: DOM DOM, Event, , QEvent, Node , , YAHOO.util.Element, API, , , .

http://code.google.com/p/qevent/

, , . .

http://dean.edwards.name/weblog/2007/03/yet-another/

0

All Articles