[wp-trac] [WordPress Trac] #34204: Add fallbacks for WP oEmbed JavaScript & CSS
WordPress Trac
noreply at wordpress.org
Tue Oct 13 04:44:32 UTC 2015
#34204: Add fallbacks for WP oEmbed JavaScript & CSS
---------------------------+-------------------------
Reporter: peterwilsoncc | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.4
Component: Embeds | Version: trunk
Severity: normal | Resolution:
Keywords: has-patch | Focuses: javascript
---------------------------+-------------------------
Comment (by peterwilsoncc):
Ok, so hands up if your forgot the entire point of the security attribute
was to prevent JS running in older browsers :)
Revised approach:
* share icon only displays if JavaScript is running in the iframe
* security policy locks out browsers without querySelector/modern events
so reverted to feature test in patch one
* css fallbacks still in play for the browser impaired
@ocean90
There's not a reliable feature detect available,
[https://github.com/Modernizr/Modernizr/issues/687 see Modernizr
discussion ], but it an approach worth considering. Inline SVG with text
fallbacks may be the ticket.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/34204#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list