eeue56 / eeue56/coed

SVG-compatible text should be in svg namespace

Open
#4 0 comments 1 reaction 2 assignees Claimed by @eeue56 View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.