[wp-trac] [WordPress Trac] #24813: wp_add_inline_style behaviour changes with SCRIPT_DEBUG
WordPress Trac
noreply at wordpress.org
Fri Aug 23 16:02:14 UTC 2013
#24813: wp_add_inline_style behaviour changes with SCRIPT_DEBUG
------------------------------+------------------
Reporter: stephenharris | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 3.7
Component: General | Version: 3.3
Severity: normal | Resolution:
Keywords: has-patch commit |
------------------------------+------------------
Comment (by stephenharris):
Replying to [comment:4 nacin]:
> This should be fun to break. What happens when <style> tags are nested?
Do things still work OK?
If the `<style>` tags are nested then the styling is not applied
(Firefox/Chrome). Although the trailing tag is not displayed, older
browsers might fare worse.
But nested `<style>` tags are not a problem here - any bugs associated
with this fix would be because the user did not wrap their rules in
`<style>` tags. But if they were doing that it would already be broken
with `SCRIPT_DEBUG` set to false.
The above patch only changes behaviour when `SCRIPT_DEBUG` is set to true.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/24813#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list