[wp-trac] [WordPress Trac] #7303: Theme preview generates duplicate
`onclick` attribute
WordPress Trac
wp-trac at lists.automattic.com
Tue Jul 15 08:15:38 GMT 2008
#7303: Theme preview generates duplicate `onclick` attribute
---------------------+------------------------------------------------------
Reporter: Varsity | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.7
Component: General | Version: 2.6
Severity: normal | Keywords:
---------------------+------------------------------------------------------
If a link in your theme has an onclick attribute, WordPress 2.6 will
insert a second attribute when previewing it.
If your page is application/xhtml+xml, this leads to the yellow screen of
death when you try to preview.
Example in theme file:
`<a href="http://feeds.feedburner.com/steamreview"
onclick="javascript:urchinTracker('/subscribe/');">`
Example during preview:
`<a href="#" onclick="return false;"
onclick="javascript:urchinTracker('/subscribe/');">`
--
Ticket URL: <http://trac.wordpress.org/ticket/7303>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list