mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-22 13:47:02 +00:00
ExtractorSVG parses SVG with the JDK's StAX parser and extracts hrefs from elements like <image>, <use> and <script> as embeds and from <a> as links, along with <?xml-stylesheet?>, url() in presentation attributes, <style>, <script>, animated hrefs and HTML in <foreignObject>. Like browsers it requires the SVG namespace, decides by the root element whether text/xml and application/xml responses are SVG, and keeps the links found before any XML error. It's added to the default profile before extractorHtml. ExtractorHTML and JerichoExtractorHTML now treat hrefs on those inline SVG elements as embeds rather than links, and extract url() from presentation attributes like fill. ExtractorCSS now ignores same-document references like url(#gradient). Fixes #796