Presentational JavaScript is not a hack. It is a standards compliant way of solving issues that cannot be done with CSS only. In the next years presentational JavaScript will probably be replaced by CSS, when browsers have better CSS2.1 compliance and with the introduction and implementation of a more advanced styling language like CSS3. The one day that no presentational JavaScript will be needed anymore, we can say that both standards makers and browser makers have done their job well. Until then, presentational JavaScript is there for the rescue.This is an idea that is starting to gain steam. Peter-Paul Koch started by explaining the principle of Minimal CSS Enhancement. Digital Web also talks about this in Separating behavior and structure and Enhancing Structural Markup.
Tagged As CSS, HTML, Javascript
Comments are Open (1)
Posted at 10:10 AM
Comments
Sam Newman
I use Javascript to create a printable version of my page - a standard print css changes most of the layout, and I use the Javascript to extract links and generate footnotes. It works fairly well and works in IE, Firefox and Safari.
Posted by: Sam Newman | May 13, 2004 04:40 AM