[Webkit-unassigned] [Bug 14552] Add a way to disable spell checking for specific element

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 3 23:38:09 PDT 2009


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





------- Comment #28 from justin.garcia at apple.com  2009-05-03 23:38 PDT -------
Spec says:

"For text that is part of text or CDATA nodes, the element with which the text
is associated is the element that is the immediate parent of the start of the
word, sentence, or other piece of text. For text in attributes, it is the
element with which the attribute is associated. For text in text fields, it is
the relevant input or textarea element."

But the patch does:

+    // Ascend the DOM tree to find a "spellcheck" attribute.
+    // When we find a "spellcheck" attribute, retrieve its value and exit if
its value is "false".
+    const Node* node = editor->frame()->document()->focusedNode();
+    while (node) {

So, for example, the testcase mentioned in the spec:

<div contenteditable="true"><span spellcheck="false"
id="a">Hell</span><em>o!</em></div>

Wouldn't work.


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



More information about the webkit-unassigned mailing list