Pero en un momento dice:
Cita:
Mi duda es, como puedo hacer para mostrar ese $attrs['BGCOLOR'] en PHP? $attrs is an associative array of the attributes that are present in the tag that triggered the event. For example, if the tag <body bgcolor="#FFFFFF"> triggered the event, then the value of $attrs['BGCOLOR'] would be "#FFFFFF". Note that, like the tag name, attribute names are case-folded (all uppercase).