From 591a3ad83a6e3d7ae316230d76d5c6d63ba6111c Mon Sep 17 00:00:00 2001 From: Madeline Trotter Date: Fri, 2 Aug 2019 10:37:21 -0700 Subject: [PATCH] Add namespace props to svg element --- codegen/index.js | 15 ++++++++++++++- src/React/Basic/DOM/Generated.purs | 12 ++++++++++++ 2 files changed, 26 insertions(+), 1 deletion(-) diff --git a/codegen/index.js b/codegen/index.js index d0f6bb3..c794755 100644 --- a/codegen/index.js +++ b/codegen/index.js @@ -67,7 +67,20 @@ Object.keys(svgProps).forEach(elName => { // The attribute list for in react-html-attributes // is wrong (it contains the union of the attributes of all // svg elements) -htmlProps['svg'] = camelCaseSvgProps['svg']; +htmlProps['svg'] = camelCaseSvgProps['svg'].concat([ + "xlinkActuate", + "xlinkArcrole", + "xlinkHref", + "xlinkRole", + "xlinkShow", + "xlinkTitle", + "xlinkType", + "xmlBase", + "xmlLang", + "xmlSpace", + "xmlns", + "xmlnsXlink" +]); const printRecord = (e, elProps) => elProps.length diff --git a/src/React/Basic/DOM/Generated.purs b/src/React/Basic/DOM/Generated.purs index 27cc612..7520923 100644 --- a/src/React/Basic/DOM/Generated.purs +++ b/src/React/Basic/DOM/Generated.purs @@ -10826,6 +10826,18 @@ type Props_svg = , wordSpacing :: String , writingMode :: String , x :: String + , xlinkActuate :: String + , xlinkArcrole :: String + , xlinkHref :: String + , xlinkRole :: String + , xlinkShow :: String + , xlinkTitle :: String + , xlinkType :: String + , xmlBase :: String + , xmlLang :: String + , xmlSpace :: String + , xmlns :: String + , xmlnsXlink :: String , y :: String , zoomAndPan :: String )