On Mon, Apr 16, 2012 at 2:18 PM, Luke Scott <l...@cywh.com> wrote: > > On Mon, Apr 16, 2012 at 2:04 PM, Luke Scott <l...@cywh.com> wrote: > >> Is there a way to use the DOM component of webkit without the rendering? >> > > You can't. querySelector, and other CSS-related DOM properties won't work > without renderers. You can, of course, not paint pages. Check out > http://phantomjs.org/ > > - Ryosuke > > > Does this mean that I can't prevent an IMG tag for loading the image? >
You can but then you do, then web pages obviously won't function as intended because onerror, instead of, onload will fire if you prevent the image load. If you pretend as if the image loaded, then width, height, etc... will be wrong. So offsetTop, etc... will return wrong values. - Ryosuke
_______________________________________________ webkit-help mailing list webkit-help@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-help