[][src]Struct moxie_dom::elements::metadata::BaseBuilder

#[must_use = "needs to be built"]pub struct BaseBuilder { /* fields omitted */ }

The HTML <base> element specifies the base URL to use for all relative URLs contained within a document. There can be only one <base> element in a document.

If either of its inherent attributes are specified, this element must come before other elements with attributes whose values are URLs, such as ’s href attribute.

A type for initializing the element's attributes before calling build.


impl BaseBuilder[src]

pub fn build(self) -> Base[src]

Initialize the element with all of the attributes so far.

impl BaseBuilder[src]

pub fn href(self, to_set: impl ToString) -> Self[src]

The base URL to be used throughout the document for relative URLs. Absolute and relative URLs are allowed.

pub fn target(self, to_set: impl ToString) -> Self[src]

A keyword or author-defined name of the default browsing context to display the result when links or forms cause navigation, for or

elements without an explicit target attribute. The attribute value targets a browsing context (such as a tab, window, or