W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2011

[whatwg] Function "Active Menu"

From: Ian Hickson <ian@hixie.ch>
Date: Thu, 8 Dec 2011 23:50:57 +0000 (UTC)
Message-ID: <Pine.LNX.4.64.1112082348020.9078@ps20323.dreamhostps.com>
On Sat, 7 May 2011, Jos? Lucas Teixeira de Oliveira wrote:
> 
> I think there should be a way to bind a link tag "<nav>" with a 
> "<article>" specific, creating a function of "active menu" automatically 
> in HTML5. What is your opinion?

On Sat, 7 May 2011, Kit Grose wrote:
>
> Possibly an even more generic case for this would be when an anchor 
> tag's href attribute points to the current URL, allowing for any type of 
> content (article or otherwise) to get simple active nav item selection.

On Sat, 7 May 2011, Jos? Lucas Teixeira de Oliveira wrote:
>
> I agree with you Kit, this is an even better suggestion that would 
> greatly facilitate the work of developers, save time and performance, 
> eliminating the use of other languages ??????to accomplish such a feat.

On Sat, 7 May 2011, Benjamin Hawkes-Lewis wrote:
> 
> I don't understand what problem you're trying to solve, or what user 
> agent behavior you are proposing.

Me either. It would be helpful to have a clearer problem description so 
that I could more adequately evaluate the proposal and determine how to 
address it, and indeed whether it is worth addressing.


On Sat, 7 May 2011, Andr?? Lu??s wrote:
>
> Recognizing that the href is the same as the current uri.
> 
> I agree it woud be nice, but I see this as a proposal for the css wg. 
> This has pseudo-class written all over this.
> 
> :current or something.
> 
> Nowadays we solve this with a .current or .active class name.
> 
> Not exactly life-changing, but useful nonetheless.

This may be of interest:

   http://dev.w3.org/csswg/selectors4/#local-pseudo

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'
Received on Thursday, 8 December 2011 15:50:57 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:38 UTC