Version 0.22.0
🚀 New Features
Support for <base>
Element
The Base
function for creating <base>
elements has been added. The <base>
element specifies the base URL to use for all relative URLs in a document.
Example Usage
head := elem.Head(nil, elem.Base(attrs.Props{"href": "https://www.example.com/"}))
⚠️ Breaking Change and Bug Fix
Migration of styles.CSS
to elem.CSS
To remove a circular dependency, the previously used styles.CSS
method has been moved and renamed to elem.CSS
. Projects that previously relied on styles.CSS
will need to update their references to the new elem.CSS
.
This will also fix a bug where styles.CSS
no longer implemented the Node
interface.