Closed Bug 174666 Opened 23 years ago Closed 22 years ago

Nonconsistence behavior of HTML <base/> element

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: bejvisek, Assigned: harishd)

Details

Hello, according to the specification element <base href="URI"/> must be placed in the head part of document. Most of other browsers support placing <base/> to any part of document and support its redefinition. Mozilla (and Netscape) behave strangely, because when <base/> is placed in body of document, it will influence e.g. relative addresses in tag <img/> but won't influence e.g. <form action="relative URI"/>. I tried it when in <base/> element was placed also in head (with other URI). Sincerely David
this might have been fixed in bug 141537. what build are you using? could you attach a testcase?
Assignee: asa → harishd
Component: Browser-General → Parser
QA Contact: asa → moied
Hello, the testcase is here: http://dde.binghamton.edu/mozilla_test/mozilla.php there are 2 <base/> definitions on this page (1 in head and 1 in body) and 2 relativ URIs, one is evaluated using the 2. <base> and one using the 1. <base> definition. david
Whiteboard: DUPEME
what build are you using? the testcase displays fine with linux trunk build 20021014
Severity: critical → normal
The testcase David reported is sadly gone, and thus, i cannot check to veryify this bug. (i get a CGI error when i try to load the page)
According to bzbarsky, <form action=""> is resolved based on the document URL and other URLs on the base URL, and this is per spec. Therefore resolving INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Whiteboard: DUPEME
You need to log in before you can comment on or make changes to this bug.