On retrieval, the value of the attribute is returned as a DOMString.
Character and general entity references are replaced with their values.
See also the method getAttribute on the Element interface.
On setting, this creates a Text node with the unparsed contents of the
string, i.e. any characters that an XML processor would recognize as markup
are instead treated as literal text.
See also the method Element.setAttribute.
On retrieval, the value of the attribute is returned as a DOMString. Character and general entity references are replaced with their values. See also the method getAttribute on the Element interface. On setting, this creates a Text node with the unparsed contents of the string, i.e. any characters that an XML processor would recognize as markup are instead treated as literal text. See also the method Element.setAttribute.