Skip to content

Add more support for SVG related self-closing tags in Document filter #405

Description

@ediamin

There are many empty elements in SVG than just circle, g and path tags. For example:

  • use
  • rect
  • image
  • polygon
  • ellipse
  • etc

Technically in SVG (as XML), any element can be self-closing, even if they aren't defined as empty (e.g. g).

Should this not be comprehensive? Or is it exclusively just to make the tests pass?

cf. ampproject/amp-wp#6657 (comment)

Originally posted by @westonruter in #210 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    DOMP2Low Priority

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions