Skip to content

Releases: github/include-fragment-element

v6.3.0

16 Jun 09:25
f28f8ae
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.2.1...v6.3.0

v6.2.1

16 Jun 09:20
ee02f93
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.2.0...v6.2.1

v6.2.0

16 Jun 09:12
a0df3be
Compare
Choose a tag to compare

What's Changed

Full Changelog: v6.1.1...v6.2.0

v6.1.1

19 Dec 17:04
2d85b9f
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.1.0...v6.1.1

v6.1.0

06 Dec 22:22
5dfb899
Compare
Choose a tag to compare

CSP trusted types is an API that allows a website to reduce the possibility of XSS by controlling what kind of content can be placed in a "sink" like .innerHTML.

This release introduces a flexible callback that allows the calling code to provide its own sanitization or rejection of an server response for an <include-fragment-element>. For example, the site may want to allow the server to send a header to assert that certain HTML is sanitized and safe to use as-is, or the site may want to run the response through a sanitizer.

What's Changed

New Contributors

Full Changelog: v6.0.1...v6.1.0

v6.0.1

31 Mar 14:57
c405e3a
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v6.0.0...v6.0.1

v6.0.0

16 Feb 10:51
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v5.3.2...v6.0.0

v5.3.2

29 Jul 11:37
v5.3.2
88fe24f
Compare
Choose a tag to compare

This release fixes a bug where calling load() on a loading=lazy element causes the contents not to be replaced when the element becomes visible.

Thanks to @latentflip for his contributions to this release 🙌🏻

v5.3.1...v5.3.2

v5.3.1

12 Mar 12:02
Compare
Choose a tag to compare

This release guarantees the order of events. The order will now always be:

  • loadstart
  • include-fragment-replace
  • include-fragment-replaced
  • load
  • loadend

This release also guarantees that during the loadstart dispatch, the <include-fragment> element will still exist and be connected to the DOM.

v5.3.0

09 Mar 12:29
Compare
Choose a tag to compare

This adds a new attribute: loading. The loading attribute is eager by default but can be set to lazy which will defer loading of the fragment until it is visible in the viewport. This is similar to <img loading=lazy>.