March 8, 2004

Extending IE through Javascript (IE7)

Dean Edwards has some alpha code that extends IE to parse style sheets using CSS2 selectors without using hacks. (I just wrote about Dean's Javascript Compressor last week) This is impressive. This script provides IE with support for the following: * namespace|selector * parent > child * adjacent + sibling * [attr], [attr="value"], [attr~="value"] * .multiple.classes (fixes bug) * :first-child, :last-child * :hover, :active, :focus * :root * Works with both HTML and XML documents * Supports imported style sheets * Preserves the cascade of the style sheet * Does not alter the document structure * Does not repeatedly query the DOM tree using JavaScript * It uses pure CSS to enforce style sheet rules * Works for Microsoft Internet Explorer 5.5+ Not bad eh? Especially when you consider it's alpha. And the implementation? Sheer genius. All you have to do to enable this is have a link to a stylesheet in your page. No special mark-up, no including scripts, no altering of CSS rules or selectors... Very, very good job Dean.
Post Info

Tagged As Browsers, CSS, Javascript

Comments are Open (1)

Posted at 08:42 AM

Comments

Jane Jolin

I'm very excited about IE7 new CSS improvements as I just finished a design theme for csszengarden.com
You can have a look at http://www.celebrityblog.net/zengarden/zengarden-sample.htm

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)

Search
Comments on this post
Categories
Info
Tony Stephens
Copyright © 1995-2005
Site Version:
10
Licensed:
Creative Commons
Validate:
XHTML, CSS, 508, RSS
Subscribe
Blog-Fu, Link-Fu