javascript - baseURI Vs namespaceURI -
every node instance has baseuri property.
node instances of element_node type maintain namespaceuri property.
what significance of these 2 properties browser manage nodes in dom?
the namespaceuri namespace of element. non-foreign elements in html serialisation, that's http://www.w3.org/1999/xhtml.
the base url of node is, in principal, akin <base> element in html. element sets base url document. in xml, base can set on element such applies xlink:href attributes of descendent elements, via xml:base attribute. xml base spec describes this. again, in principal, should apply xhtml documents (properly served application/xhtml+xml of course), example <a> elements in svg namespace. however, quick test shows in fact, while firefox supports correctly, chrome , ie not.
Comments
Post a Comment