[wp-trac] [WordPress Trac] #18785: Modernize screen functions

WordPress Trac wp-trac at lists.automattic.com
Mon Oct 10 20:34:57 UTC 2011


#18785: Modernize screen functions
----------------------------+------------------------------
 Reporter:  nacin           |       Owner:  nacin
     Type:  enhancement     |      Status:  assigned
 Priority:  normal          |   Milestone:  Awaiting Review
Component:  Administration  |     Version:  3.3
 Severity:  normal          |  Resolution:
 Keywords:  needs-patch     |
----------------------------+------------------------------

Comment (by azaozz):

 Replying to [comment:40 mbijon]:
 > My patch above will require that 6 of the 11 places where add_help_tab()
 to have an ID value added.

 Yes, the proper way is to require the IDs, that was already in but was
 reverted :)

 Replying to [comment:42 GaryJ]:
 > ID values in HTML5 can be just about anything...

 Right, `sanitize_html_class()` actually sanitizes for XHTML IDs. Class
 names and IDs in HTML 5 can contain almost any character, however that
 brings problems/complications when using them in CSS and JS. Also don't
 see the point of having:
 {{{
 <div id="官方中文站点" class="为您提供">...
 }}}
 and hope that plugin and theme authors would be able to use them. Also
 don't even want to think of what would happen if the browser is not using
 UTF-8 encoding.

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


More information about the wp-trac mailing list