Jump to menu

Vote down?

  1. Rudie

    It seems to me you’re completely ignoring IE < 9, (which is fine by me,) but then why would you define @hasClass()@ and @addListener()@ like you do? You could just use @elm.classList.contains(className)@ and @elm.addEventListener@, right?

    The @<picture>@ syntax is a bit too verbose for me. I’m more of a CSS @attr@ fan. I can’t find the original article, but it would allow CSS to set an IMG attr, like:

    bc. @media (max-width: 600px) { .body img { attr(‘src’, attr(‘data-src-small’)) }
    }

    or something like that. It would have the dimensions ‘logic’ in CSS and the filenames in HTML, like we do with our background images already.

    (Why don’t @ render as code? Stupid Textile.)