Text directly inside an element whose display is set to table is unselectable, but if the text is enclosed in another element, the text is selectable. This only applies to text, not images, etc. Works properly in Safari 2.0.4. Testcase in a minute.
Created attachment 11060 [details] Testcase
Looks like a regression from <http://trac.webkit.org/projects/webkit/changeset/12358>. I am preparing a patch.
Created attachment 12540 [details] Patch No editing test regressions.
Comment on attachment 12540 [details] Patch Looks good. The way Hyatt had me fix something like this in another similar case was to ask the renderer "isText() && !isBR()" instead of doing the checking on the DOM tree side. I think we should have a RenderObject call that returns style for other renderers and 0 for text renderers that are not <br> elements. Or a boolean check on RenderObject like isRealText() which is isText() && !isBR(). r=me
Landed in r18968.