Type Entity Hack

From CSS Discuss

Jump to: navigation, search

This hack prevents externally linked CSS files from being read by iCab.

It works by using an Html Entity in place of a character in the value of the type attribute of an embedding or a linking style sheet.

It does not appear to matter which character is replaced by its equivalent entity.

Caveat: A valid linking style sheet will work if it appears before such a hack, but not after it. Embedding style sheets seem not to be affected.

Examples

Embedding Style Sheet

<style type="text/css">
body {background: black; color: white}
</style>

Linking Style Sheet

<link rel="stylesheet" type="text/css" href="somestyle.css" />

This hack was discovered by Dominik Boecker.

As a side note, Dominik's site is mostly in German, and does not cover HTML or CSS in its subject matter.

Addendum January 12th 2003: i contacted Alexander Clauss - the Programmer of iCab - and reported that bug. He promised not to fix it up to version 3.0 of iCab, which will have a much better CSS-support.


Category Bug Workaround

Personal tools