Skip to content

svg inside html #22

Description

@roldud

reqflow relies on libxml2, which is pretty intolerant regarding SVG inside HTML.
Consider the following simple HTML file:

<!DOCTYPE html>
<html><head><title>hi</title></head>
    <body>
        <svg width="400" height="200">
            <circle cx="150" cy="100" r="50" />
        </svg>
    </body>
</html>

Using the following req:

document t -path t.html -req plop(.*)

This gives:

$ reqflow trac -c t.req
./t.html:4: HTML parser error : Tag svg invalid
        <svg width="400" height="200">
                                     ^
./t.html:5: HTML parser error : Tag circle invalid
            <circle cx="150" cy="100" r="50" />
                                             ^

Requirements of t                                  Requirements Downstream
--------------------------------------------------------------------------------------------------------------------
$

This seems to be linked to a limitation of libxml2 which doesn't parse the SVG tags correctly, but is this something that could be worked around in reqflow?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions