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

Incorrect handling of whitespace around inline elements for text() #253

Open
interDist opened this issue Nov 13, 2023 · 0 comments
Open

Comments

@interDist
Copy link

The text() function makes use of the INLINE_TAGS set to determine the handling of newlines, however it looks like this list was not updated in quite a while. The last comprehensive list on MDN, before the page was rewritten in April 2023, includes the following, with the ones missing from the INLINE_TAGS set marked with a cross:

  • <a>
  • <abbr>
  • <acronym>
  • <audio> ❌
  • <b>
  • <bdi> ❌
  • <bdo>
  • <big>
  • <br>
  • <button>
  • <canvas> ❌
  • <cite>
  • <code>
  • <data> ❌
  • <datalist> ❌
  • <del> ❌
  • <dfn>
  • <em>
  • <embed> ❌
  • <i>
  • <iframe> ❌
  • <img>
  • <input>
  • <ins> ❌
  • <kbd>
  • <label>
  • <map>
  • <mark> ❌
  • <meter> ❌
  • <noscript> ❌
  • <object>
  • <output> ❌
  • <picture> ❌
  • <progress> ❌
  • <q>
  • <ruby> ❌
  • <s> ❌
  • <samp>
  • <script>
  • <select>
  • <slot> ❌
  • <small>
  • <span>
  • <strong>
  • <sub>
  • <sup>
  • <svg> ❌
  • <template> ❌
  • <textarea>
  • <time>
  • <u> ❌
  • <tt>
  • <var>
  • <video> ❌
  • <wbr> ❌
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant