The Base tag.
Moderator: General Moderators
The Base tag.
This should be a really simple question but I can't find the answer anywhere online. Is the <base> tag universally supported (all browsers, all operating systems)? It's a much nicer approach when I'm rewriting URLs to include '/'s than using absolute paths on everything.
Well, I never heard it's not... so I guess it is (universally supported) 
Edit: If you go here: http://meiert.com/en/indices/html-elements/ it says it is valid HTML 3.2, HTML 4.01, XHTML 1.0, XHTML 1.1 and HTML 5, so I guess you can use it
Edit: If you go here: http://meiert.com/en/indices/html-elements/ it says it is valid HTML 3.2, HTML 4.01, XHTML 1.0, XHTML 1.1 and HTML 5, so I guess you can use it
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
I used to use it a lot more. Then I started working with miva and found that there is no easy way (within miva - have I mentioned that I hate miva?) to do something like this:
because that takes you back to whatever the value of base href is. so you go to $basehref#some-point-on-the-page which is rarely what you want. This probably isn't so much of a problem in php because it's easy to find what page you're currently on.
Code: Select all
<a href="#some-point-on-the-page">This is cool</a>because that takes you back to whatever the value of base href is. so you go to $basehref#some-point-on-the-page which is rarely what you want. This probably isn't so much of a problem in php because it's easy to find what page you're currently on.
-
alex.barylski
- DevNet Evangelist
- Posts: 6267
- Joined: Tue Dec 21, 2004 5:00 pm
- Location: Winnipeg
Dude. Your my hero.The Ninja Space Goat wrote:I used to use it a lot more. Then I started working with miva and found that there is no easy way (within miva - have I mentioned that I hate miva?) to do something like this:
Code: Select all
<a href="#some-point-on-the-page">This is cool</a>
because that takes you back to whatever the value of base href is. so you go to $basehref#some-point-on-the-page which is rarely what you want. This probably isn't so much of a problem in php because it's easy to find what page you're currently on.
Seriously, your a life saver...this is exactly why I am having the problem with this topic:
viewtopic.php?t=70593
Unfortunately I need <base> tag so I will have to come up with an alternative method, but you just saved me tons of effort in research and investigation. Next beer is on me (not literally of course).
Cheers
I'm afraid I don't really remember, think IE (6 if I remember correctly) ignored the tag completely.onion2k wrote:Can you elaborate? I've tested it in IE6, FF2, Opera and Safari and they're all working ok. Where did you have problems?vigge89 wrote:I experimented with it for phpFe (to save bandwidths), but it didn't work out very well - I think I had some issues with browsers behaving differentely.