[wp-trac] [WordPress Trac] #44056: Fix markup for table of contents on privacy policy guide

WordPress Trac noreply at wordpress.org
Mon May 14 11:23:01 UTC 2018


#44056: Fix markup for table of contents on privacy policy guide
------------------------------+--------------------------------
 Reporter:  ocean90           |       Owner:  (none)
     Type:  defect (bug)      |      Status:  new
 Priority:  normal            |   Milestone:  4.9.6
Component:  Administration    |     Version:  trunk
 Severity:  normal            |  Resolution:
 Keywords:  needs-patch gdpr  |     Focuses:  ui, accessibility
------------------------------+--------------------------------

Comment (by azaozz):

 In 44056.patch:
 - Add ID to the "Introduction" heading and use it to scroll to it.
 - Add translatable date format instead of user selected one.
 - Add prefix to HTML IDs used for the ToC.

 We can't add IDs to the headings as they are "too low". Unfortunately the
 browsers scroll-into-view is still somewhat buggy and doersn't take into
 account HTML elements that may cover the top. If we add the IDs to the
 headings or use empty anchors, the actual headings are scrolled under the
 admin toolbar. Tested in FF, Chrome, Edge and IE11, all do that :(

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/44056#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list