Mark,
Can't you just insert the element and then query the element itself to find it's attributes?
>Given a specific location in an HTML document that you want to manipulate with DHTML, is there a way to determine the font attributes of what a newly inserted character will be? So far, the only way I have found to do this is to "walk the DOM" using the parentelement method and keeping track of the innermost elements that have to do with font attributes (such as SIZE=N FACE=x COLOR=c) and by tracking things like BOLD and STRONG elements. Lots of iteration scutwork. Seems that there should be a method or property in the DOM that lets you ask: What is the font face, font size, etc at this point in the document? Clearly the rendering engine has to know that because it renders text using exactly that information.