Bug 11271

Summary: REGRESSION (r12358): Text in display: table unselectable
Product: WebKit Reporter: Matt Lilek <dev+webkit>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: mitz
Priority: P1 Keywords: HasReduction, Regression
Version: 420+   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
Testcase
none
Patch darin: review+

Matt Lilek
Reported 2006-10-12 19:47:02 PDT
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.
Attachments
Testcase (321 bytes, text/html)
2006-10-12 19:47 PDT, Matt Lilek
no flags
Patch (15.45 KB, patch)
2007-01-18 12:26 PST, mitz
darin: review+
Matt Lilek
Comment 1 2006-10-12 19:47:43 PDT
Created attachment 11060 [details] Testcase
mitz
Comment 2 2007-01-18 12:05:56 PST
Looks like a regression from <http://trac.webkit.org/projects/webkit/changeset/12358>. I am preparing a patch.
mitz
Comment 3 2007-01-18 12:26:11 PST
Created attachment 12540 [details] Patch No editing test regressions.
Darin Adler
Comment 4 2007-01-18 13:04:58 PST
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
Mark Rowe (bdash)
Comment 5 2007-01-18 17:29:42 PST
Landed in r18968.
Note You need to log in before you can comment on or make changes to this bug.