|
|
|
|
HTMLRemoveAttribute (Función) Elimina un atributo determinado hDoc is htmlDocument = " <html> <head/> <body> <h2><span> <p>Text</p> </span></h2><h3><div></div><span></span></h3> </body> </html> " hNode is htmlNode hSearchNode is array of htmlNode <- HTMLFindElementByTag(hDoc, "h3") hNode <- hSearchNode[1] HTMLModifyAttribute(hNode, "id") // body: <h2><span><p>Text</p></span></h2><h3 id><div></div><span></span></h3> HTMLModifyAttribute(hNode, "id", "h3") // body: <h2><span><p>Text</p></span></h2><h3 id="h3"><div></div><span></span></h3> HTMLRemoveAttribute(hNode, "id") // body: <h2><span><p>Text</p></span></h2><h3><div></div><span></span></h3>
Sintaxis
HTMLRemoveAttribute(<Source node> , <Attribute>)
<Source node>: htmlNode Variable Nombre de la variable htmlNode que corresponde al nodo reference para eliminar el atributo. <Attribute>: htmlAttribute Variable o cadena de caracteres Atributo a eliminar. Este elemento puede corresponder a: - una variable de tipo htmlAttribute.
- una cadena correspondiente al atributo que se va a eliminar.
Clasificación Lógica de negocio / UI: Lógica de negocio Componente: wd290html.dll
Esta página también está disponible para…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|