SVG-compatible text should be in svg namespace
Open
- Dominant language
- TypeScript
- Stars
- 16
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description
```
import { Attribute, Event, HtmlNode, nodeNS, Tag } from "@eeue56/coed";
const SVG_NAMESPACE = "http://www.w3.org/2000/svg";
export function svgText(
events: Event[],
attributes: Attribute[],
children: HtmlNode[]
): HtmlNode {
return nodeNS("text" as Tag, SVG_NAMESPACE, events, attributes, children);
}
```
seems to work correctly vs a regular `text`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.