[wp-trac] [WordPress Trac] #16672: Admin Bar and param href = FALSE

WordPress Trac wp-trac at lists.automattic.com
Sun Feb 27 03:48:44 UTC 2011


#16672: Admin Bar and param href = FALSE
--------------------------+------------------------------
 Reporter:  Bueltge       |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  General       |     Version:  3.1
 Severity:  normal        |  Resolution:
 Keywords:  dev-feedback  |
--------------------------+------------------------------

Comment (by solarissmoke):

 Replying to [comment:3 Bueltge]:
 > ou can add via the meta-attribut the param onclick; but i think on html-
 standards is then href="#" or similar.

 Here is the relevant section from the spec:

  If the a element has no href attribute, then the element represents a
 placeholder for where a link might otherwise have been placed...

  The target, ping, rel, media, hreflang, and type attributes must be
 omitted if the href attribute is not present.

 But not others - like onclick etc.

 I don't necessarily object to allowing a `li` element without an `a`
 element inside it - just saying that I don't think it should be done by
 checking for the presence/absence of `href`.

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


More information about the wp-trac mailing list