Content deleted Content added
→"Box Model Hack": not actually clear IE7 has the parsing bug. removing |
→Selector Hacks: Moved explanations from comments into prose. |
||
Line 60:
==== Selector Hacks ====
===== Star HTML hack =====
The <code>html</code> element is the root element of the W3C standard [[Document Object Model|DOM]], but Internet explorer versions 5.5 and 6 include a mysterious parent element. Fully-compliant browsers will ignore the <code>* html</code> selector, while IE 5.5 and 6 will process it normally. This enables rules to be specified for these versions of Internet Explorer which will be ignored by all other browsers.
* html p {font-size: 5em; }
===== html>body hack =====
Versions of Internet Explorer before version 7 do not support the "child selector" (<code>></code>), allowing rules to be specified for all browsers except Internet Explorer. For example
==== Criticisms of Hacks ====
|