VK said:
It does "respond" - it changes the corresponding text
node value for the attribute.
The common mistake is to think that UA is /obligated/
to parse the value and update graphics context accordingly.
As the DOM specs state right the opposite,
No they don't. If anything they imply that assigning values to the
attribute should modify some (most) of the properties of the interfaces
defined in the HTML DOM.
the only source of this allusion as I
see it is in the "convenience AID" in Gecko.
You were never very good at seeing anything, especially where it
involves the interpretation of English combined with reasoned thought.
<quote cite="
http://www.w3.org">
setAttribute(String)
Adds a new attribute. If an attribute with that name is already
present in the element, its value is changed to be that of the value
parameter. ...
In the HTML DOM specification many of the interface property definitions
take the form of this example, the - id - property of the HTMLElement
interface:-
<quote
cite="
http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html"id of type DOMString
The element's identifier. See the id attribute definition
in HTML 4.01.
</quote>
- where the - id - property is defined in terms of the HTML attribute
definition. Implying that it gets its value from the attribute in the
HTML mark-up (or the default for that attribute in the case of
attributes that have an implied default value).
However, the - src - property of the HTMLIFrameElement interface is
defined as:-
<quote
cite="
http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html"src of type DOMString
A URI [IETF RFC 2396] designating the initial frame contents.
See the src attribute definition in HTML 4.01.
</quote>
-in which the value is qualified with the word "initial". If it was not
intended that changes to the HTML attribute values would update the
pertinent interface properties then there would have been no need for
such qualification, as the value of - src - must then be the initial
URI.
The fact that some interface properties defined in reference to HTML
attributes are qualified and the majority are not implies that the
intention was that modifying the value of the HTML attribute would
directly influence the values of the pertinent unqualified interface
properties.
This impression is reinforced by:-
<quote
cite="
http://www.w3.org/TR/2003/REC-DOM-Level-2-HTML-20030109/html.html"The attributes are exposed as properties for compatibility with DOM
Level 0. This usage is deprecated because it can not be generalized to
all possible attribute names for XML. We recommend the use of generic
methods on the core Element interface for setting, getting and removing
attributes.
</quote>
If the HTML DOM specification recommends using attribute getting,
setting and removing methods rather then the exposed properties then it
must be their intention that acting upon attributes in this way have all
the effects of manipulating the DOM through the exposed properties.
Which is why we are stuck with using the exposed properties directly as
the only reasonably cross-browser alternative.
No, it doesn't respond because it is the chosen AID
(Anti-Idiot Defence) behavior.
<snip>
You don't know what you are talking about, again.
Richard.