You are here: Re: <base href="file:///..."/> question « HTML « IT news, forums, messages
Re: <base href="file:///..."/> question

Posted by Jukka K. Korpela on 01/14/07 08:22

Scripsit dfloss:

> For local html files, this works well.

For what? We can only see a poor solution, not the problem it was supposed
to solve.

> Unfortunately, it also breaks
> internal anchor links.

Of course it does.

> <base href="file:///C:/some_folder/" />

By definition, it sets the base URL of _all_ relative URLs in all
attributes.

> <a href="#SOME_ID_REFERENCE">blah</a> <-- doesn't work -->

By definition, it works the way it has been defined to work.

> Is it possible to make internal links ignore the <base href...>
> setting?

No, except by making them use absolute URLs (which isn't a good idea).

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация