Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removing warnings when running xmllint on svg files #10037

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

albert-github
Copy link
Collaborator

Removing warnings when running xmllint:

  • I/O error : Attempt to load network entity http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd Replaced http by https
  • element a: validity error : Element a does not carry attribute xlink:href
    • in case no brief description (i.e. tooltip) and no URL see to it that <title> in svg to empty string
    • in case of a brief description see to it that there is no <a> present and that the tooltip is in the <title>

- `I/O error : Attempt to load network entity http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd`
  Replaced `http` by `https`
- `element a: validity error : Element a does not carry attribute xlink:href`
  - in case no brief description (i.e. tooltip) and no URL see to it that `<title>` in svg to empty string
  - in case of a brief description see to it that there is no `<a>` present and that the tooltip is in the `<title>`
@albert-github albert-github added bug HTML HTML / XHTML output labels May 8, 2023
while (getline(fi,lineStr))
{
QCString line = lineStr+'\n';
if (line.startsWith("<title"))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is it somehow guaranteed the title tag always starts on a new line, or is this a (perhaps too brittle) assumption?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the examples I saw it was the case that <title (as a well as the </a> tag ) start at the beginning of the line.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug HTML HTML / XHTML output
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants