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

It's an old browser feature. I think the idea was so you could easily reference other elements in inline-HTML event handlers (onclick= etc.).

Personally I find it handy for messing around in jsfiddle and the like:

    <pre id="out"></pre>

    [...]
    out.innerHTML += some_result;


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

Search: