[wp-trac] [WordPress Trac] #47014: Tag balancing corrupts Custom Elements
WordPress Trac
noreply at wordpress.org
Fri May 31 08:11:43 UTC 2019
#47014: Tag balancing corrupts Custom Elements
--------------------------------------+------------------------
Reporter: westonruter | Owner: flixos90
Type: defect (bug) | Status: reviewing
Priority: normal | Milestone: 5.3
Component: Formatting | Version: 2.0.4
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests | Focuses:
--------------------------------------+------------------------
Comment (by flixos90):
@dmsnell Thanks for these detailed observations. There are indeed several
shortcomings in the current parser, but fixing all of them goes beyond the
scope of this ticket. I also think only covering regular word characters
in this iteration is a valuable enough change.
I agree though that we must make sure to not accidentally allow invalid
tags (e.g. custom element tags including capital letters as you mention).
Something I'm also wondering about: Is it actually valid to have a tag
like `<--->`? According to
[https://w3c.github.io/webcomponents/spec/custom/#valid-custom-element-
name the spec] it seems so.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/47014#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list