[whatwg] Expected behaviour when a <base> is within an innerHTML fragment
mail at jorgenhorstink.nl
Sun Feb 11 03:37:50 PST 2007
On Feb 11, 2007, at 12:01 PM, Geoffrey Sneddon wrote:
> To take this from a discussion last month on atom-syntax:
> What is meant to happen if you set innerHTML of a <div> where the
> set value has both a <base> and an <a>?
first of all the <base> element can only be inserted in HTML
documents. The spec states that there can only be one <base> element.
The <base> element must be used before any elements that use
If the insertion mode is "in body" handle the token as follows:
A start tag token whose tag name is one of: "base", "link",
Parse error. Process the token as if the insertion mode had
been "in head". 
So inserting a <base> element in the body results in a parse error.
> - Geoffrey Sneddon
More information about the whatwg