Re: WebView/DOM tree link?
Re: WebView/DOM tree link?
- Subject: Re: WebView/DOM tree link?
- From: George Orthwein <email@hidden>
- Date: Sun, 21 May 2006 22:19:53 -0400
Did you see this thread:
http://lists.apple.com/archives/webkitsdk-dev/2006/Mar/msg00035.html
It looks like clientHeight and clientWidth would give the size, but
the poster had troubles with the position.
I was looking around a bit and this doesn't help with position, but
an alternative to width/height looks like offsetWidth/offsetHeight.
It appears to work in Safari:
http://www.quirksmode.org/dom/getstyles.html
Strangely, I can't find any of these in the Webkit headers....
I suppose you could also try inserting a div and setting its position
and size to be equal to the selected node. You wouldn't need to know
the exact size in that case.
George
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden