[Webkit-unassigned] [Bug 16999] Convert custom attributes to object properties

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jan 24 20:56:40 PST 2008


http://bugs.webkit.org/show_bug.cgi?id=16999





------- Comment #3 from rjiang at gmail.com  2008-01-24 20:56 PDT -------
(In reply to comment #1)
> The interesting question is if IE does this for all custom attributes (mapping
> them to editable? properties on JS objects).
> 
> I don't think we could ever implement this in WebKit, except as some sort of
> Quirks mode.
> 

Yes, IE does this for all attributes that it doesn't recognize, and they are
editable and you can still use getAttribute to query updated value:

  s += "getAttribute(\"minLength\"): " + userid.getAttribute("minLength") +
"<br>";
  userid.minLength = 99;
  s += "getAttribute(\"minLength\"): " + userid.getAttribute("minLength") +
"<br>";

In IE, output is:

getAttribute("minLength"): 1
getAttribute("minLength"): 99


-- 
Configure bugmail: http://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