2006-07-14 Anders Carlsson <acarlsson@apple.com>
Reviewed by Adele and Justin.
http://bugzilla.opendarwin.org/show_bug.cgi?id=9658
<rdar://problem/4613948>
REGRESSION: Check Spelling does not work in textarea elements
* bridge/mac/FrameMac.mm:
(WebCore::FrameMac::advanceToNextMisspelling):
Don't use setStartBefore or setEndAfter on the search range because for shadow trees, there
is no notion of before and after. Instead, use setStart and setEnd and pass in the start and end
indices respectively.
* dom/Range.cpp:
(WebCore::Range::checkNodeBA):
Allow range operations on shadow trees.
* manual-tests/form-element-spelling.html: Added.
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15435 268f45cc-cd09-0410-ab3c-d52691b4dbfc
diff --git a/WebCore/manual-tests/form-element-spelling.html b/WebCore/manual-tests/form-element-spelling.html
new file mode 100644
index 0000000..805dddc
--- /dev/null
+++ b/WebCore/manual-tests/form-element-spelling.html
@@ -0,0 +1,6 @@
+<html>
+<body>
+ <textarea>Helo everibody</textarea><input type="text" value="Helo everibody">
+ <p>Test that it's possible to do spell-checking in the two elements above. Choose "Check Spelling" or "Spelling..." from the contextual menu and verify that both work.</p>
+</body>
+</html>