[wp-trac] [WordPress Trac] #60390: HTML API: Indicate if a given tag name represents an HTML tag.

WordPress Trac noreply at wordpress.org
Tue Jan 30 23:16:17 UTC 2024


#60390: HTML API: Indicate if a given tag name represents an HTML tag.
-------------------------+-----------------------------
 Reporter:  dmsnell      |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  HTML API     |    Version:  trunk
 Severity:  normal       |   Keywords:
  Focuses:               |
-------------------------+-----------------------------
 The HTML5 living specification defines three kinds of elements:
  - HTML elements.
  - Foreign elements, those which are part of MathML and SVG content.
  - Custom elements.

 The HTML API should be able to indicate if a given tag name is possibly an
 HTML element or not, so that dependent functions can make appropriate
 decisions for self-closing elements.

 HTML treats the self-closing flag differently for HTML and foreign
 elements. In HTML elements the flag is ignored, but in foreign content the
 flag indicates that the tag is self-closing or void. HTML itself does not
 contain self-closing elements; only some void elements.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/60390>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list