[wp-trac] [WordPress Trac] #14380: Caption shortcode inserts inline style forcing width of containing div
WordPress Trac
wp-trac at lists.automattic.com
Wed Jul 21 19:45:21 UTC 2010
#14380: Caption shortcode inserts inline style forcing width of containing div
--------------------------+-------------------------------------------------
Reporter: iandunn | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Shortcodes | Version:
Severity: minor | Keywords: caption, inline style
--------------------------+-------------------------------------------------
This is related to #9066.
The problem is that the image caption shortcode inserts an inline style on
the containing div which sets the width to an arbitrary value which cannot
be overriden by the theme's stylesheet.
The proposed solution is to replace the shortcode function with a custom
one which creates the markup without the inline style, but this is
undesirable. It adds unnecessary complexity for beginners and is just
generally annoying and shouldn't be necessary.
Creating an inline style violates web standards and contradicts the
philosophy behind a theme-based architecture.
The inline style on the div should be removed so that theme developers can
style the caption like they would any other element, without having to
resort to inconvenient workarounds.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/14380>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list