Skip to content

Version 0.3.3

Compare
Choose a tag to compare
@carlosame carlosame released this 19 Aug 12:51
· 248 commits to master since this release
v0.3.3

Highlights

DOM

The matches(), querySelector() and querySelectorAll() methods were added.

See

Transcoder

  • When transcoding an SVG image embedded in an HTML document that has several embedded SVGs, the KEY_SVG_SELECTOR transcoding hint can now be used to select which one we want. Otherwise the first svg element in the document will be rendered.

  • SVG files embedded in HTML documents that do not use namespaces at all (no namespace in the html nor the svg elements) are now supported. Note that if the html element explicitly defines a namespace but the svg doesn't, the transcoding fails (this is also the behaviour on web browsers).


Detail of changes

  • dom: implement matches(), querySelector() and querySelectorAll().
  • transcoder: add the KEY_SVG_SELECTOR transcoding hint.
  • transcoder: use SVGConstants.SVG_SVG_TAG in CSSTranscodingHelper.
  • transcoder: support namespaceless svg elements inside plain HTML.
  • transcoder: add a two-argument method to CSSTranscodingHelper, deprecate 3-args version.
  • Tests: add a test for the selector argument of CSSTranscodingHelper.
  • Tests: restore namespace settings to defaultFontFamily test.
  • Upgrade to css4j 4.1.