How to change the baseURI of a Node in Javascript

dom, html, javascript

Solution

I believe the .baseURI attribute is read only. Check here: http://help.dottoro.com/ljhvjgiu.php

Problem

The MDN doc claims that there are two ways of changing a Node `.baseURI` attribute: - When an HTML `<base>` tag is found in the document; (1) - When this is a new document created dynamically. (2) They don't provide an explanation as to how it can be done dynamically (2). They also state that you shouldn't add `<base>` elements in html documents (1). How can I change the `.baseURI` attribute dynamically in Javacsript? [EDIT] According to this SO using `base` is perfectly legit. Why is MDN advising against it then?

Original source

Related problems