Re: Element.createElement proposal

Robert O'Callahan <[email protected]>
Newsgroups gmane.comp.mozilla.devel.dom
Organization Mozilla Corporation
Message-ID <[email protected]>
Instead of using a JS object, it's probably more performant, and I think 
slightly more convenient, to just specify extra arguments:
   e.addChild("span", "class", "hello", "style", "width:100px");
You can write it as
   e.addChild("span",
              "class", "hello",
               "style", "width:100px");
if you like.

Rob
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.