[webkit-dev] Question regarding getElementById()

Won J Jeon wjjeon at gmail.com
Tue Dec 28 10:09:02 PST 2010


Hi all,

I have a test html page having HTML5 canvas tag like <canvas id="canvas_id"
width="..." height="...">.
After getting the pointer to a Document object, I tried to get the pointer
to a particular HTML5 canvas element by using:

Element *element = document->getElementById(AtomicString("canvas_id"));

But element gets 0. Is there problem in the code? I already confirmed that
document is correct (from document->title()).

Regards,
Won
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20101228/bc90dfc3/attachment.html>


More information about the webkit-dev mailing list