Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Good riddance, though there is a somewhat masochistic pleasure in finding hacky solutions for old IE versions.

I once figured out that IE7 can be tricked into understanding the :before and :after CSS pseudo-elements with this:

  .thing {
    *zoom: expression( this.runtimeStyle.zoom="1", this.insertBefore( document.createElement("i"), this.firstChild).className="ie-before" );
  }

  .thing .ie-before {
    *zoom: expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = '|');
  }


How did you even figure that out? That sounds like it would take having IE's source code to figure out.


For those of us who cut our teeth on IE6, this was pretty much par for the course.

Check out Dean Edwards IE7 JS script - this was key to making IE6 behave like a modern browser: https://code.google.com/archive/p/ie7-js/

Edit: better way to view: https://github.com/Integralist/Dean-Edwards--IE-7-and-8-and-...


Ah yes, the good ol' PNG transparency hack is included in there. The bitter-sweet memories of web development in the 90s. Too bad the only working hack for fixing PNG gamma was to remove the gamma chunk from the image file itself.


It looks like fairly standard JS to me. I don't know where to read about it but there are some details on the deprecation blog article: https://blogs.msdn.microsoft.com/ie/2008/10/16/ending-expres...


That's CSS, with embedded JS, which is relatively non standard.


It’s very non-standard, it was IE only until they dropped it in IE8, but it was one of the features being abused to make up for other css features that IE6 or 7 lacked.


Sure, but my point still stands: figuring this out doesn't require arcane knowledge, contrary to what was suggested. The code inside the expression looks like standard JS. The downvotes and your reply suggests I should have communicated more clearly.


I feel like I'm seeing Prometheus arriving with fire stolen from the hands of the gods.

(But the year is 2019, and we've had fire for thousands of years.)


Web development became too easy after <!doctype HTML>. Gotta come up with ways to add complexity now. Quickly rewrite everything using latest web framework and no-SQL.


Let's completely recreate the browser in Javascript but without the back button, middle click or SEO! It's totally not Flash 2.0 because transpiler.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: