Changeset 471

Show
Ignore:
Timestamp:
12/06/05 12:11:25 (3 years ago)
Author:
bob
Message:

#19
The Javascript property corresponding to the for attribute is, for Internet Explorer, htmlFor.

You might want to account for this, just as you did for the class <-> className trick.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • mochikit/trunk/MochiKit/DOM.js

    r465 r471  
    930930            "class": "className", 
    931931            "checked": "defaultChecked", 
    932             "usemap": "useMap" 
     932            "usemap": "useMap", 
     933            "for": "htmlFor" 
    933934        }; 
    934935    } else { 
  • mochikit/trunk/doc/html/MochiKit/VersionHistory.html

    r465 r471  
    1616<li>MochiKit.DOM now has a workaround for an IE bug when setting the style 
    1717property to a string</li> 
    18 <li>MochiKit.DOM.createDOM now has a workaround for an IE bug when setting the 
    19 name property</li> 
     18<li>MochiKit.DOM.createDOM now has workarounds for IE bugs when setting the 
     19name and for properties</li> 
    2020<li>MochiKit.DOM.scrapeText now walks the DOM tree in-order</li> 
    2121<li>MochiKit.LoggingPane now sanitizes the window name to work around IE bug</li> 
  • mochikit/trunk/doc/html/MochiKit/index.html

    r465 r471  
    5454<li>MochiKit.DOM now has a workaround for an IE bug when setting the style 
    5555property to a string</li> 
    56 <li>MochiKit.DOM.createDOM now has a workaround for an IE bug when setting the 
    57 name property</li> 
     56<li>MochiKit.DOM.createDOM now has workarounds for IE bugs when setting the 
     57name and for properties</li> 
    5858<li>MochiKit.DOM.scrapeText now walks the DOM tree in-order</li> 
    5959<li>MochiKit.LoggingPane now sanitizes the window name to work around IE bug</li> 
  • mochikit/trunk/doc/rst/MochiKit/VersionHistory.rst

    r465 r471  
    55- MochiKit.DOM now has a workaround for an IE bug when setting the style 
    66  property to a string 
    7 - MochiKit.DOM.createDOM now has a workaround for an IE bug when setting the 
    8   name property 
     7- MochiKit.DOM.createDOM now has workarounds for IE bugs when setting the 
     8  name and for properties 
    99- MochiKit.DOM.scrapeText now walks the DOM tree in-order 
    1010- MochiKit.LoggingPane now sanitizes the window name to work around IE bug 
  • mochikit/trunk/packed/MochiKit/MochiKit.js

    r465 r471  
    29172917}; 
    29182918_386.compliant=false; 
    2919 _386.renames={"class":"className","checked":"defaultChecked","usemap":"useMap"}; 
     2919_386.renames={"class":"className","checked":"defaultChecked","usemap":"useMap","for":"htmlFor"}; 
    29202920}else{ 
    29212921_386=function(node){