W3C home > Mailing lists > Public > public-webapi@w3.org > April 2006

Core DOM class extensions that are in many browsers

From: Maciej Stachowiak <mjs@apple.com>
Date: Thu, 6 Apr 2006 23:14:01 -0700
Message-Id: <EB8BAD93-BB2C-49A3-BF39-601B80351D65@apple.com>
To: Web APIs WG <public-webapi@w3.org>

While cleaning up some aspects of Safari's DOM bindings for JS, I  
found the following DOM extensions which I think are very widely  
implemented (including at least Mozilla and IE and I think probably  
Opera and Safari). We should consider these strong suggestions for  
things we ought to standardize:


         Node item(in long index); // and Node is also indexable as  

Document (browsers vary as to whether some of these these are on  
Document or HTMLDocument):

         boolean execCommand(in DOMString command,
                             in boolean userInterface,
                             in DOMString value);
         boolean queryCommandEnabled(in DOMString command);
         boolean queryCommandIndeterm(in DOMString command);
         boolean queryCommandState(in DOMString command);
         boolean queryCommandSupported(in DOMString command);
         DOMString queryCommandValue(in DOMString command);
         attribute DOMString dir;
         attribute DOMString lastModified;
         attribute DOMString designMode;

Element (browsers vary as to whether some of these are on Element or  

         readonly attribute long offsetLeft;
         readonly attribute long offsetTop;
         readonly attribute long offsetWidth;
         readonly attribute long offsetHeight;
         readonly attribute Element offsetParent;
         readonly attribute long clientWidth;
         readonly attribute long clientHeight;
         attribute long scrollLeft;
         attribute long scrollTop;
         readonly attribute long scrollWidth;
         readonly attribute long scrollHeight;
         void focus();
         void blur();
         void scrollIntoView(in boolean alignWithTop); // optional  
         attribute long tabIndex;

Received on Friday, 7 April 2006 06:14:08 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:16:20 UTC