[webkit-help] DOM without rendering?
rniwa at webkit.org
Mon Apr 16 14:29:14 PDT 2012
On Mon, Apr 16, 2012 at 2:18 PM, Luke Scott <luke at cywh.com> wrote:
> On Mon, Apr 16, 2012 at 2:04 PM, Luke Scott <luke at 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
> - 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.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the webkit-help