This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 28396 - There must be no more than one <base> element per document; rules are given for handling invalid situations ("...all [base elements] but the first are ignored"), but fail to cover the case
Summary: There must be no more than one <base> element per document; rules are given f...
Status: RESOLVED WORKSFORME
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: https://html.spec.whatwg.org/#the-bas...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-04-03 04:12 UTC by contributor
Modified: 2015-08-28 16:00 UTC (History)
3 users (show)

See Also:


Attachments

Description contributor 2015-04-03 04:12:29 UTC
Specification: https://html.spec.whatwg.org/multipage/semantics.html
Multipage: https://html.spec.whatwg.org/multipage/#the-base-element
Complete: https://html.spec.whatwg.org/#the-base-element
Referrer: https://html.spec.whatwg.org/multipage/

Comment:
There must be no more than one <base> element per document; rules are given
for handling invalid situations ("...all [base elements] but the first are
ignored"), but fail to cover the case

<base href="http://www.example.com/">
<base target="_blank">

There is only one <base> element with an href= attribute, and only one <base>
element with a target= attribute; the rules only apply to _multiple_ <base>
elements with a certain attribute.

Perhaps the notes should refer to ignoring excess _attributes_: as written
they refer to excess _elements_. I.e., merge all the <base> elements into one,
containing the first (if any) href= attribute and the first (if any) target=
attribute.

Posted from: 125.238.146.34
User agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:37.0) Gecko/20100101 Firefox/37.0
Comment 1 Simon Pieters 2015-04-07 07:49:07 UTC
These notes seem correct to me -- they match the processing requirements.

See https://html.spec.whatwg.org/multipage/infrastructure.html#conformance-classes