I am trying to get a handle on html, css and javascript.
One thing i ran into was using DOM and using the attribute methods
element.getAttribute(name) – get the attribute value
element.setAttribute(name, value) – set the value for the attribute
element.hasAttribute(name) – check for the existence of an attribute
element.removeAttribute(name) – remove the attribute
if the attribute is inline CSS then the functions work
if they are within the <style></style> tags they do not
get exposed to the methods.
Is that correct? I would think that would minimize the usefulness
of these functions.
One thing i ran into was using DOM and using the attribute methods
element.getAttribute(name) – get the attribute value
element.setAttribute(name, value) – set the value for the attribute
element.hasAttribute(name) – check for the existence of an attribute
element.removeAttribute(name) – remove the attribute
if the attribute is inline CSS then the functions work
if they are within the <style></style> tags they do not
get exposed to the methods.
Is that correct? I would think that would minimize the usefulness
of these functions.