How to disable <base href="file://...> automatically added to the html file?

33 views
Skip to first unread message

Poster91 HK

unread,
Jan 19, 2016, 12:44:41 PM1/19/16
to Shelve Firefox Add-on
Thanks for Shelve!

When save to HTML only, a line <base href="file://...> is automatically added into the html. 
How can I prevent this? 
I need this html file to sync into my FTP folder, but the webpage doesn't work if this line is added.

Thanks for the HELP!

tom

unread,
Jan 19, 2016, 12:52:14 PM1/19/16
to shelve-fir...@googlegroups.com

> When save to HTML only, a line <base href="file://...> is
> automatically added into the html.
> How can I prevent this?

Please verify this tag isn't there when you save the file as pure html
via File/Save As...

Poster91 HK

unread,
Jan 19, 2016, 11:19:41 PM1/19/16
to Shelve Firefox Add-on
Thanks for the reply!

Yes this tag isn't there when I save page as pure html through Firefox:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="EXPIRES" content="0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>唐記包點</title>
<meta name="generator" content="Poster91 - http://www.poster91.com">
 
<style type="text/css">
body
{
background: url(images/menu.jpg);
background-repeat: no-repeat;
background-color: #FFFDF1;
background-size: cover;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
</head>

<body>
......

And It is added automatically (indicated as red) when I save it as html only through Shelves:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html><head>
<meta http-equiv="EXPIRES" content="0">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>唐記包點</title>
<meta name="generator" content="Poster91 - http://www.poster91.com">
 
<style type="text/css">
body
{
background: url(images/menu.jpg);
background-repeat: no-repeat;
background-color: #FFFDF1;
background-size: cover;
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
</style>
<base href="file:///C:/media/menu%20control/menu.html"></head>

<body>
......

tom

unread,
Jan 21, 2016, 2:12:55 PM1/21/16
to shelve-fir...@googlegroups.com

And It is added automatically (indicated as red) when I save it as html only through Shelves:
Unfortunately, I cannot reproduce this behaviour with the version of FF I use. It isn't shelve that (intentionally) adds this line.

Reply all
Reply to author
Forward
0 new messages