(possible)Bug in DOMCORE API :::: node.attributes

With respect to the node Interface, it defines node.attributes as a read-only named node map.
This implies any attempt to modify the map e.g. using setNamedItem() should raise exception.

In ihdSim no exception is raised , in fact the attributes are modified.

Is this a bug



Thanks





Answer this question

(possible)Bug in DOMCORE API :::: node.attributes

  • ssfftt

    donbox5 wrote:
    With respect to the node Interface, it defines node.attributes as a read-only named node map.
    This implies any attempt to modify the map e.g. using setNamedItem() should raise exception.

    In ihdSim no exception is raised , in fact the attributes are modified.

    Is this a bug



    Thanks




    P.S. What about the read-only members firstChild and lastChild.
    Those seem to be easily replaceable/removable....


  • (possible)Bug in DOMCORE API :::: node.attributes