[Webkit-unassigned] [Bug 68592] wrap attribute of textarea element cannot be accessed by JavaScript
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Sep 23 09:41:37 PDT 2011
https://bugs.webkit.org/show_bug.cgi?id=68592
--- Comment #5 from Vineet Chaudhary <rgf748 at motorola.com> 2011-09-23 09:41:37 PST ---
Thanks Kent for clearing my doubt.
But here is another problem.
If we say wrapAttr as [Reflect] in idl, I have test case where I specify wrap attr but no keyvalue like
<textarea wrap=> This is a simple text-area2 </textarea>
So in script if I do something like
var textArea = document.getElementsByTagName('textarea')[0];
alert(textArea.wrap);
As per spec ( section 4.10.13 The textarea element) it should return me SoftWrap but it returns nothing.
But as wrapAttr is enumerated attribute so as per this (2.8.1 Reflecting content attributes in IDL attributes) http://www.whatwg.org/specs/web-apps/current-work/multipage/urls.html#limited-to-only-known-values
this spec it should return "empty string if the attribute is in a state that has no associated keyword value" which is true in this case as there is no way to return default value.
Both these are contradicting with each other.
I think wrap attribute shouldn't be [Reflect] attribute and should have get/set methods for JS.
Kent/Ian Hickson
Could you please guide me if I am wrong.
--
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