/**
* @param {HTMLElement} elementoHtml
* @param {string} nombre
* @returns {string}
*/
export function getAttribute(elementoHtml, nombre) {
const valor = elementoHtml.getAttribute(nombre)
return valor === null ? "" : valor
}
GilPG DM
7. PWA con formulario y Material Design 3 Expressive
E. Carpeta « public »
arrow_upward
public / libclienteweb / abreElementoHtml.js
public / libclienteweb / cierraElementoHtmo.js
public / libclienteweb / ES_APPLE.js
public / libclienteweb / getAttribute.js
public / libclienteweb / manejaErrores.js
public / libclienteweb / muestraError.js
public / libclienteweb / muestraTextoDeAyuda.js
public / libclienteweb / ProblemDetailsError.js
public / libclienteweb / querySelector.js
public / libclienteweb / resaltaSiEstasEn.js
arrow_downward