Markup & CSS Quirks

Things that should work but doesn't.

Empty script elements

Problem

<script src="js/frontpage.js"/>

Using an emptyscript element validates perfectly XHTML 1.0 strict, but messes up things seriously in Internet Explorer and Mozilla Firefox - Opera is the only one treating the web page correctly. IE and Mozilla does all kinds of odd tings, not showing pictures (!) is one of them.

Fix

Use containing <script> elements although you only use the src attribute:

<script src="js/frontpage.js"></script>

~ /home 🏠 ~ talks 💬 ~ bash ~ craftsmanship ~ db ~ dongxi ~ emacs ~ escenic ~ iam ~ java ~ js ~ language ~ latex ~ ldap ~ life ~ linux ~ llm ~ mac-os-x ~ mt-foo ~ network ~ norsk ~ python ~ quotes ~ running ~ security ~ travel ~ unix ~ various ~ vcs ~ webdesign ~ windows ~ discoveries ~ cv 🧙 ~

Licensed under CC BY Creative Commons License ~ 📡 RSS feed ~ ✉ torstein.k.johansen @ gmail ~ 🐘 @skybert@hachyderm.io ~ 🎥 youtube.com/@skybert