Re: VBS GetElementByClassName custom function

Tech-Archive recommends: Fix windows errors by optimizing your registry



I may be misunderstanding what you want to
do, but if you want all elements of a certain class,
can't you just use Document.All and check the className
attribute of each Item in All?


"Your code appears to assume that the domnode passed in is an XML DOM
node
not a HTML DOM node from IE, is that actually true? If not you can't
appendChild from a HTML Node into an XML Node. "

I agree with your proposition, but could you help me in creating an
html dom handler ?

could i make sg like this :
set my_html_dom = createobject("htmlfile")




.



Relevant Pages

  • Re: XSLT Transformation in Javascript
    ... This works fine with non-IE browsers, ... the above I still don't know how to get an object that I can append to ... While browsers like Mozilla or Opera have an XML and HTML DOM implementation with a common base IE does not have that at all. ... Its HTML DOM is completely separate from the XML DOM which is implemented by MSXML. ...
    (microsoft.public.scripting.jscript)
  • Re: VBS GetElementByClassName custom function
    ... just one question about dom type: ... "Your code appears to assume that the domnode passed in is an XML DOM ... not a HTML DOM node from IE, ... appendChild from a HTML Node into an XML Node. ...
    (microsoft.public.scripting.vbscript)
  • Convert a XML DOM Object to a HTML DOM Object
    ... I create XML DOM each for the data file and the XSL File ... My requirement is that I want to convert this XML DOM to a HTML DOM ...
    (comp.text.xml)
  • Re: DOM
    ... I know XML and still know next to nothing about the HTML DOM. ... XML DOM is a nice well-behaved thing, ... rats' nest of vendor-specific weirdness. ... least you'll learn a modern vendor-independent way of doing things. ...
    (alt.html)