<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/57450>57450</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            -Wdocumentation warning for valid `img` tag when building in Xcode
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          amja
      </td>
    </tr>
</table>

<pre>
    Hello! Firstly apologies if this is not the right forum for this question. I found very little information online regarding who handles documentation parsing/warning between Clang and Xcode itself. Please close if this is not relevant.

The most direct issue I am seeing is the `HTML start tag prematurely ended, expected attribute name or '>'` warning (which I am pretty sure comes from Clang) being raised when a self-closing `img` tag is used in a header docstring comment of Objective-C code: `/// <img src="filegoeshere" alt="Alt text goes here"/>`. Since self-closing `img` tags are standard HTML, I'm not sure why this is happening.

This warning does not present when using an image tag that is *not* self closing. The problem is, I am unable to do that because this is generated code. The following is less likely to relate to Clang but I will put it anyway:

I'm building DocC documentation for a Swift project. This supports the inclusion of images via markdown syntax: `![Alt text goes here](filegoeshere)`. However, this Swift class is exposed to Objective-C so a header is built for it. When the header is generated, it converts the Markdown into HTML, thus creating this self-closing `img` tag.

I already submitted a feedback request to Apple regarding this but I would appreciate any help if this does in fact relate to Clang's documentation parsing system.

Thanks!
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx9VF1v4zYQ_DXyyyKGLX_EfvBDmjTIAT20wB1wfaXElcQLRaokZcX_vrOS7SRGr4BBS-Jyd2Z2uIXXp8MLW-uzfEnPJsRkT6Q6b31tOJKpKDUG_5GcT3hmCqZuElU-9K2s0_4_PcdkvJvTF3zsnaYjhxNZk5JlMg6BrZIA8s4ahyxcq6CNq2loPDXKaYty2pd9yy5NoZ0KERFZ_jyo4CS24DQwO3q0Cm84RH-XXqNAimyrOf1lWUWm0nqsN9gDWz4ql-bZ4ilbPEzr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