Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change the baseURI of a Node in Javascript

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?

like image 832
Renaud Avatar asked Feb 23 '15 17:02

Renaud


1 Answers

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

like image 64
Yavor Avatar answered Sep 20 '22 06:09

Yavor