Releases: hal/elemento
Elemento 1.7.0
Warning
This release contains refactorings and deprecations that might break existing code.
The refactoring should make the use case and scope of the builder-like classes, interfaces and methods more obvious. It
introduces a common naming pattern for interfaces and classes:
-
Interface
[HTML|MathML|SVG]Element<Scope>Methods
: These interfaces contain default methods to work with a specific aspect of
an HTML, MathML or SVG element.Some examples are
ElementAttributeMethods
HTMLElementDataMethods
HTMLInputElementMethods
SVGElementStyleMethods
-
Class
[HTML|MathML|SVG](Element|Container)Builder
: Concrete builders that encapsulate an HTML, MathML or SVG element. The
builders implement the method interfaces to work with the element.Some examples are
HTMLElementBuilder
HTMLInputElementBuilder
SVGContainerBuilder
See https://hal-console.gitbook.io/elemento/builder-api#classes-and-interfaces for more information.
Changed
Core
-
HasElement<E extends Element, B extends TypedBuilder<E, B>>
has been deprecated and is split into more specific interfaces:ElementAttributeMethods<E, B>
ElementClassListMethods<E, B>
ElementConsumerMethods<E, B>
ElementContainerMethods<E, B>
ElementEventMethods<E, B>
ElementIdMethods<E, B>
ElementHTMLMethods<E, B>
ElementTextMethods<E, B>
-
HasHTMLElement<E extends Element, B extends TypedBuilder<E, B>>
has been deprecated and is split into more specific
interfaces:HTMLElementAttributeMethods<E, B>
HTMLElementDataMethods<E, B>
HTMLElementStyleMethods<E, B>
HTMLElementVisibilityMethods<E, B>
-
Container<E extends Element, B extends TypedBuilder<E, B>>
has been deprecated. It is replaced by
ElementContainerMethods<E, B>
-
ElementsBag
has been deprecated. It should be replaced by using the standard collection API. -
Finder<E extends Element, B extends TypedBuilder<E, B>>
has been deprecated. It is replaced byElementQueryMethods<E, B>
-
HasInputElement<E extends HTMLInputElement, B extends TypedBuilder<E, B>>
and
InputElementBuilder<E extends HTMLInputElement, B extends TypedBuilder<E, B>>
have been deprecated. They are replaced by
HTMLInputElementMethods<E, B>
andHTMLInputElementBuilder<E, B>
. -
LazyElement
has been deprecated. It should be replaced by using late initialization inIsElement.element()
.
MathML
HasMathMLElement<E extends MathMLElement, B extends TypedBuilder<E, B>>
has been deprecated and is replaced by
MathMLElementStyleMethods<E, B>
:
SVG
HasSVGElement<E extends SVGElement, B extends TypedBuilder<E, B>>
has been deprecated and is replaced by more specific
interfaces:SVGElementDataMethods<E, B>
SVGElementStyleMethods<E, B>
Elemento 1.6.11
Upgrades
- Bump Elemental to 1.2.3
- Bump JUnit to 5.11.3
Removed
- Remove custom clipboard support (
org.jboss.elemento.Clipboard
), which is now available in Elemental 1.2.3 as
elemental2.dom.Navigator.clipboard
Elemento 1.6.10
- Make
Elements.insert*()
methods null-safe
Elemento 1.6.9
Fixed
- Fix bug in
BodyObserver
removing wrong elements on detach due to a wrong CSS attribute selector. See also https://developer.mozilla.org/en-US/docs/Learn/CSS/Building_blocks/Selectors/Attribute_selectors- Wrong selector:
<attribute>*=<id>
- Correct selector:
<attribute>~=<id>
- Wrong selector:
Elemento 1.6.8
Added
- Add
Elements.isElementInView(HTMLElement)
based on https://gist.github.com/Marco-Prontera/6d9d1a9cead48f44e8dabd8ff5310ecf
Elemento 1.6.7
Added
- Add
Logger.initFrom(elemental2.dom.Location)
Elemento 1.6.6
Changed
- Return a unique label from
Logger.time
methods
Removed
- Remove deprecated methods:
HasElement.id()
Elemento 1.6.5
Added
- Add
Logger.group
andLogger.time
methods
Elemento 1.6.3
Changed
- Make
By.selector()
public
Upgrades
- Bump J2CL processors to 0.7
- Bump JUnit to 5.10.3
Elemento 1.6.2
Added
- Add
Page.attach()
- Add
Page.detach()