Skip to content

Commit

Permalink
Add support for SVG elements in hsx
Browse files Browse the repository at this point in the history
Element index reference:

W3C Candidate Recommendation
Appendix F: Element Index
https://www.w3.org/TR/SVG2/eltindex.html
  • Loading branch information
zarak committed Jan 19, 2021
1 parent 0b4e60a commit 7310738
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion IHP/HtmlSupport/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,18 @@ parents = Set.fromList
, "summary", "sup", "table", "tbody", "td", "textarea", "tfoot", "th"
, "thead", "time", "title", "tr", "u", "ul", "var", "video"
, "svg", "path", "text", "circle", "marquee", "blink"
, "loading"
, "loading", "animate", "animateMotion", "animateTransform"
, "clipPath", "defs", "desc", "discard", "ellipse", "feBlend"
, "feColorMatrix", "feComponentTransfer", "feComposite"
, "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap"
, "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB"
, "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge"
, "feMergeNode", "feMorphology", "feOffset", "fePointLight"
, "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence"
, "filter", "foreignObject", "g", "line", "linearGradient", "marker"
, "mask", "metadata", "mpath", "path", "pattern", "polygon", "polyline"
, "radialGradient", "rect", "set", "stop", "switch", "symbol"
, "textPath", "tspan", "unknown", "use", "view"
]

leafs :: Set Text
Expand Down

0 comments on commit 7310738

Please sign in to comment.