The MDN doc claims that there are two ways of changing a Node .baseURI
attribute:
<base>
tag is found in the document; (1)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?
I believe the .baseURI attribute is read only. Check here: http://help.dottoro.com/ljhvjgiu.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With