Opened 2 years ago
#43457 new defect (bug)
`wp_html_split` valid HTML attributes issues
Reported by: | soulseekah | Owned by: | |
---|---|---|---|
Milestone: | Awaiting Review | Priority: | normal |
Severity: | normal | Version: | |
Component: | Shortcodes | Keywords: | |
Focuses: | Cc: | ||
PR Number: |
Description
There are a handful of valid HTML attributes that shatter wp_html_split
.
Since it works by looking for the <
character we can break it in many ways, starting from:
https://mathiasbynens.be/demo/crazy-class
https://mathiasbynens.be/demo/html5-id
And ending in the less exotic and crazy:
<span data-content="<p>abcd</p>">loading...</span>
Same goes for CSS attribute selectors in <style> tags.
Attachments (1)
Note: See
TracTickets for help on using
tickets.