opensubscriber
   Find in this group all groups
 
Unknown more information…

w : webkitsdk-dev@lists.apple.com 3 January 2006 • 3:36AM -0500

contentEditable in DIV vs. SPAN; And -khtml-user-modify:read-write?
by George Orthwein

REPLY TO AUTHOR
 
REPLY TO GROUP




Happy 2006 everybody!

I'm seeing weirdness in contentEditable applied to a SPAN compared to  
a DIV. Here's my simple HTML:
> <span contentEditable="true" >This is editable text in a span.</span>
> <div contentEditable="true">This is editable text in a div.</div>

Selecting in the DIV works as normal and a selection border is drawn  
around the DIV. Selecting in the SPAN is quite difficult... clicking  
or double clicking the text will not work... I'm only able to make a  
selection if I click and drag at the very start or end of the text in  
the SPAN.

Is this normal/known? Any workarounds besides shying away from using  
SPAN?

--

And a somewhat related question. Any documentation on the following  
CSS attributes?
-khtml-user-modify:
-khtml-user-select:

They are used in some Dashboard examples but no documentation per se.  
A google search revealed a random forum post that said "-khtml-user-
modify:read-write" works the same as "contentEditable=true" and I've  
found that to be correct in a simple test case. I'd love to see  
actual documentation on this though. (I've seen posts on other lists  
unsuccessfully asking for this, but I thought I'd bring it up here  
anyway just to add another voice to the mix.)

Thanks,
George


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webkitsdk-dev mailing list      (Webkitsdk-dev@list...)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webkitsdk-dev/subscriber%40opensubscriber.com

This email sent to subscriber@open...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.