Skip to content

SVG Output introduces unaccountable text elements.  #12

Open
@pdamoc

Description

@pdamoc

Sample SVG:

<svg xmlns="http://www.w3.org/2000/svg" width="1000" height="1000" viewBox="0 0 1000 1000">
  <defs>
    <clipPath id="a">
      <path d="M.06.04h999.893V1000H.06zm0 0"/>
    </clipPath>
  </defs>
  <g clip-path="url(#a)">
    <path d="M.06.04h999.893V1000H.06zm0 0" fill="#ee3833"/>
  </g>
 </svg>

outputs

svg [ height "1000", viewBox "0 0 1000 1000", width "1000", attribute "xmlns" "http://www.w3.org/2000/svg" ]
  [ defs []
    [ clipPath [ id "a" ]
      [ path [ d "M.06.04h999.893V1000H.06zm0 0" ]
        []
      , text "    "
      ]
    ]
  , g [ attribute "clip-path" "url(#a)" ]
    [ path [ d "M.06.04h999.893V1000H.06zm0 0", fill "#ee3833" ]
      []
    , text "  "
    ]
  ]

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions