[wp-trac] [WordPress Trac] #12056: target="_blank" being stripped from Profile Bio and Category Description
WordPress Trac
noreply at wordpress.org
Fri Dec 13 22:59:17 UTC 2024
#12056: target="_blank" being stripped from Profile Bio and Category Description
-------------------------------------------------+-------------------------
Reporter: lovewpmu | Owner: audrasjb
Type: enhancement | Status: accepted
Priority: normal | Milestone: 6.8
Component: Formatting | Version: 2.9.2
Severity: normal | Resolution:
Keywords: gsoc kses has-patch needs-testing- | Focuses:
info has-unit-tests has-screenshots | accessibility
-------------------------------------------------+-------------------------
Comment (by audrasjb):
Hello @azaozz,
This is not about explicitly encouraging people to use such an attribute
but mostly about allowing it in the code provided by authors. On a bio
profile field, it could make sense to allow it (see comments above).
Concerning the browser implementation:
> Note: Setting `target="_blank"` on `<a>`, `<area>` and `<form>` elements
implicitly provides the same `rel` behavior as setting `rel="noopener"`
which does not set `window.opener`.
Source: https://developer.mozilla.org/en-
US/docs/Web/HTML/Attributes/rel/noopener
Therefore I think we are definitely good to go with the current changeset.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/12056#comment:42>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list