Skip to content

Commit b703132

Browse files
committed
Add SVG namespace attributes by default
closes #2183
1 parent 12ecfa7 commit b703132

File tree

708 files changed

+779
-777
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

708 files changed

+779
-777
lines changed

src/plot.js

+2
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ export function plot(options = {}) {
158158
context.ownerSVGElement = svg;
159159
context.className = className;
160160
context.projection = createProjection(options, subdimensions);
161+
svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns", "http://www.w3.org/2000/svg");
162+
svg.setAttributeNS("http://www.w3.org/2000/xmlns/", "xmlns:xlink", "http://www.w3.org/1999/xlink");
161163

162164
// Allows e.g. the axis mark to determine faceting lazily.
163165
context.filterFacets = (data, channels) => {

test/output/aaplBollinger.svg

+1-1
Loading

test/output/aaplBollingerCandlestick.svg

+1-1
Loading

test/output/aaplBollingerGridInterval.svg

+1-1
Loading

test/output/aaplBollingerGridSpacing.svg

+1-1
Loading

test/output/aaplCandlestick.svg

+1-1
Loading

test/output/aaplChangeVolume.svg

+1-1
Loading

test/output/aaplClose.svg

+1-1
Loading

test/output/aaplCloseClip.svg

+1-1
Loading

test/output/aaplCloseDataTicks.svg

+1-1
Loading

test/output/aaplCloseGridColor.svg

+1-1
Loading

test/output/aaplCloseGridInterval.svg

+1-1
Loading

test/output/aaplCloseGridIntervalName.svg

+1-1
Loading

test/output/aaplCloseGridIterable.svg

+1-1
Loading

test/output/aaplCloseImplicitGrid.svg

+1-1
Loading

test/output/aaplCloseNormalize.svg

+1-1
Loading

test/output/aaplCloseUntyped.svg

+1-1
Loading

test/output/aaplFancyAxis.svg

+1-1
Loading

test/output/aaplInterval.svg

+1-1
Loading

test/output/aaplMonthly.svg

+1-1
Loading

test/output/aaplVolume.svg

+1-1
Loading

test/output/aaplVolumeRect.svg

+1-1
Loading

test/output/anscombeQuartet.svg

+1-1
Loading

test/output/arcCollatz.svg

+1-1
Loading

test/output/arcCollatzUp.svg

+1-1
Loading

test/output/arcMiserables.svg

+1-1
Loading

test/output/armadillo.svg

+1-1
Loading

test/output/arrowDates.svg

+1-1
Loading

test/output/arrowTest.svg

+1-1
Loading

test/output/arrowTestAccessor.svg

+1-1
Loading

test/output/arrowTestBin.svg

+1-1
Loading

test/output/arrowTestCustomOrder.svg

+1-1
Loading

test/output/arrowTestDifferenceY.svg

+1-1
Loading

test/output/arrowTestGroup.svg

+1-1
Loading

test/output/arrowTestPointer.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<figure><svg class="plot" fill="currentColor" font-family="system-ui, sans-serif" font-size="10" text-anchor="middle" width="640" height="400" viewBox="0 0 640 400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
1+
<figure><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" class="plot" fill="currentColor" font-family="system-ui, sans-serif" font-size="10" text-anchor="middle" width="640" height="400" viewBox="0 0 640 400">
22
<style>
33
:where(.plot) {
44
--plot-background: white;

test/output/arrowTestSort.svg

+1-1
Loading

0 commit comments

Comments
 (0)