ID of flowchart subgraph SVG element breaks other scripts #4948
Labels
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
Description
A flowchart subgraph is rendered as an SVG
<g>
elements with the subgraph title as the ID of the element. Because DOM IDs are accessible as a global, this can interfere with/break scripts.For example
produces an SVG
<g>
element withid="Buffer"
for the subgraph.This can break code like
I realize that in this example, we could also check that
typeof Buffer.doSomething === "function"
, but this check is being done in third party code.Steps to reproduce
Screenshots
No response
Code Sample
No response
Setup
Suggested Solutions
Additional Context
No response
The text was updated successfully, but these errors were encountered: