These forums are currently read-only due to receiving more spam than actual discussion. Sorry.

It is currently Sat Dec 02, 2017 4:06 pm Advanced search

The <base> tag's "href" attribute

Do you think the HTML spec should do something differently? You can discuss spec feedback here, but you should send it to the WHATWG mailing list or file a bug in the W3C bugzilla for it to be considered.

The <base> tag's "href" attribute

Postby zneak » Mon May 10, 2010 2:44 am

Hello everyone,

I was using the <base> tag on a project of mine for rather complex purposes, and I found out my code didn't work with Firefox. After a lot of testing, I found out that Firefox cannot handle relative paths in the href attribute of <base>, because the standard says so.

What's the rationale behind this? To me, it's downright idiotic.
zneak
<h6>
 
Posts: 6
Joined: Sat Feb 27, 2010 4:37 am

Postby zcorpan » Mon May 10, 2010 3:02 pm

HTML5 allows relative URLs in <base>. You could file a bug report against Mozilla if there's no open bug on it already.
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden

Postby zneak » Mon May 10, 2010 10:15 pm

Is that true? The current editor's draft says:
href = URI
The base URL for the document.

And from what I understand (I'm never quite sure about this part), what they describe there is necessarily absolute (as in scheme://stuff).
zneak
<h6>
 
Posts: 6
Joined: Sat Feb 27, 2010 4:37 am

Postby zcorpan » Tue May 11, 2010 6:21 pm

The draft you're reading is non-normative.

http://www.whatwg.org/specs/web-apps/cu ... -base-href

(You have to follow the cross-references to get to what is really allowed as the value, but it boils down to that relative URLs are allowed.)
zcorpan
<article>
 
Posts: 807
Joined: Tue Feb 06, 2007 8:29 pm
Location: Sweden


Return to Feedback on the Specs

Who is online

Users browsing this forum: No registered users and 1 guest