[Webkit-unassigned] [Bug 44886] Reflected attribute input.size wraps on negative values (Chrome), or returns them (Safari)

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri May 27 09:54:27 PDT 2011


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





--- Comment #4 from Aryeh Gregor <Simetrical+webkit at gmail.com>  2011-05-27 09:54:27 PST ---
jQuery is a huge, complicated third-party library built on top of standard browser APIs.  As far as I understand it, not being a jQuery user, .prop() sets IDL attributes and .attr() sets content attributes.  This bug discusses *reading* an IDL attribute when the content attribute is -1.  .prop("size", -1) *sets* the IDL attribute, which is an entirely separate thing.

What this bug in talking about:

* Standard: input.setAttribute("size", "-1"); alert(input.size)
* jQuery: input.attr("size", "-1"); alert(input.prop("size"))

What you're talking about:

* Standard: input.size = -1
* jQuery: input.prop("size", -1)

These are separate things.  Behavior differences in the second case should probably be in a separate bug.

-- 
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