[wp-trac] [WordPress Trac] #26005: customize-preview.js and in-page anchors

WordPress Trac noreply at wordpress.org
Thu Nov 14 19:15:24 UTC 2013


#26005: customize-preview.js and in-page anchors
----------------------------+------------------------------
 Reporter:  afercia         |       Owner:
     Type:  defect (bug)    |      Status:  new
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.7.1
 Severity:  normal          |  Resolution:
 Keywords:                  |
----------------------------+------------------------------

Comment (by afercia):

 integration:
 one more test case would be:
 {{{
 <a href="#">Back to top</a>
 }}}
 with some jQuery smooth scrolling, I can't count how many themes use that
 and that won't work in the customizer preview, will trigger a request for
 the home page.

 Btw there also links that *contain* an hash for example:
 http://yoursite.com/yourpage/#comments
 when you're already on the single post that triggers a POST request which
 reloads the page, this should be avoided. But if you're in an archive page
 things are different and the request should take place.
 Btw, for the simpler case, I've tested with
 {{{
 "a:not([href*='#'])"
 }}}
 and seeems to work.

--
Ticket URL: <http://core.trac.wordpress.org/ticket/26005#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list