[Webkit-unassigned] [Bug 25444] SelectionStart, selectionEnd properties return wrong values when the selection is in a form input

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 8 23:45:15 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=25444





--- Comment #21 from Ryosuke Niwa <rniwa at webkit.org>  2010-11-08 23:45:15 PST ---
(In reply to comment #20)
> > Why don't you just pass element to startTest & testHandler instead of making if statement like this.
> > i.e.
> > testHandler(document.getElementById('text'));
> > testHandler(document.getElementById('area'));
> Because 'eval' in 'shouldBe' throws exception like 'ReferenceError: element is not defined.' if I use local variable or just argument, I put global variable and assign node to it.

Just call testPassed / testFailed directly as in: http://trac.webkit.org/browser/trunk/LayoutTests/editing/execCommand/script-tests/query-command-state.js?rev=70810

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list