Hello,
According to DOM 2 Core, the attribute "nodeRef.attributes" is
"A NamedNodeMap containing the attributes of this node (if it is an
Element) or null otherwise."
http://www.w3.org/TR/2000/REC-DOM-Le...tml#ID-84CF096
The question I have is if such NamedNodeMap contains the specified
attributes or all possible/actual/specified attributes. This question is
important because MSIE 6 will return all possible attributes while other
browsers will report only actual attributes, those which are specified.
Which browser is right?
Peter-Paul Koch thinks
http://www.quirksmode.org/dom/w3c_core.html#link8
that the list of actual/specified attributes is "decidedly the saner
interpretation." of the spec.
I thought he was right until I examined the DOM spec. If the returned
list should be about the specified/actual attributes only, then why is
it that the W3C needed to define an another attribute for the attribute
object, namely the specified attribute?
http://www.w3.org/TR/2000/REC-DOM-Le...l#ID-862529273
I'm confused and not sure what to think.
Gérard
--
remove blah to email me