[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

--- Comment #8 from Happy-melon  2011-01-05 21:09:43 UTC 
---
(In reply to comment #7)
> @Happy-melon:
> 
> It looks like those were concerns with that implementation, not with resolving
> this issue. r52963 didn't allow for a manually-typed ID to override a 
> generated
> one, but rather created a second ID attribute.

Indeed; but that's the reason why the move to attach the id to the  wasn't
completed then.

> But even with the r52963 solution, if an editor NEEDS to add a second ID, why
> not use an  or other element after the heading? (And if she needs to add a
> third one, it must be done that way anyway.) I didn't see any evidence that an
> editor actually needs to manually specify an ID, just the theoretical desire
> not to change current behaviour.

It was more that people couldn't be bothered to dig out whether it was
reasonable and practical to change the current behaviour.  Passing
Linker::makeHeader() an array of attributes rather than a string would go a
long way towards increasing our flexibility here, but no one did the necessary
work.

> The purpose of the heading ID is to identify the heading element, not just a
> span of text.

Indeed.

> @Aryeh Gregor:
> 
> Why not just change id="Foo" to id="Bar" in the rare case when an editor
> specifies it? 

Because the code generating the ToC isn't aware that that change has been made,
and so will output a broken link.  Both IDs need to be included *somewhere*
around the header.

> A surrounding  or HTML5  would be better still, but much more
> complicated to implement. 

That's bug 6104

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

--- Comment #7 from Michael Zajac  2011-01-05 19:45:19 UTC ---
@Happy-melon:

It looks like those were concerns with that implementation, not with resolving
this issue. r52963 didn't allow for a manually-typed ID to override a generated
one, but rather created a second ID attribute.

But even with the r52963 solution, if an editor NEEDS to add a second ID, why
not use an  or other element after the heading? (And if she needs to add a
third one, it must be done that way anyway.) I didn't see any evidence that an
editor actually needs to manually specify an ID, just the theoretical desire
not to change current behaviour.

The purpose of the heading ID is to identify the heading element, not just a
span of text.

@Aryeh Gregor:

Why not just change id="Foo" to id="Bar" in the rare case when an editor
specifies it? With the current situation, wikitext is inadequate and I'd have
to type HTML for every heading if I want my CSS or Javascript to access them.

A surrounding  or HTML5  would be better still, but much more
complicated to implement. Even without it, HTML5 clearly defines the scope of a
section, based on the *headings*, so a CSS designer or Javascript can use this,
*if* the headings are identified.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

Aryeh Gregor  changed:

   What|Removed |Added

 CC||simetrical+wikib...@gmail.c
   ||om

--- Comment #6 from Aryeh Gregor  2011-01-05 
19:04:28 UTC ---
Specifically, if

  Foo

gets translated to something involving

  Foo

then what do you suggest we do with

  Foo

as wikitext input?  Currently, explicitly-specified  is treated pretty much
the same as wikitext headings.  One solution would be to make the  contain
only the actual title, so instead of

  [edit] References 

do

  [edit] References

or something.  But that would have to be deployed carefully to not break
existing content.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

--- Comment #5 from Happy-melon  2011-01-05 18:40:37 UTC 
---
There were concerns from r52963 about how it handles headings where the ID is
manually specified.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

--- Comment #4 from Michael Zajac  2011-01-05 18:35:35 UTC ---
span#References only styles (part of) the inline text inside the heading
element. It can't change the heading block's attributes such as margins,
padding, background-colour, position, etc. 

> do you really need to?

The point of semantic HTML is to simplify the code while giving a designer
control over ALL of the page. So a creative person can do something you and I
haven't imagined yet. Without Javascript hacks.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

--- Comment #3 from Bawolff  2011-01-05 18:29:27 UTC ---
You could use h2 span#References {...}

You wouldn't be able to style the h2 directly, but do you really need to?

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

Michael Zajac  changed:

   What|Removed |Added

 Blocks||10467

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

Michael Zajac  changed:

   What|Removed |Added

 Status|RESOLVED|REOPENED
 Resolution|FIXED   |

--- Comment #2 from Michael Zajac  2011-01-05 18:15:53 UTC ---
Not really. The id attribute is now in a span nested inside the heading
element. Still no help in using CSS to style a particular heading. 

For example, I can't use h2#References {}, or any other selector,
to style the text of an article's reference heading, because the #References ID
belongs to a meaningless span INSIDE the heading.  

This is a symptom of [[wikt:divitis]] and classitis. Resolving this bug means
adopting best-practice semantic HTML.  Reopening.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.
___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l


[Bug 16190] Relate section anchors to section headings in HTML

2011-01-05 Thread bugzilla-daemon
https://bugzilla.wikimedia.org/show_bug.cgi?id=16190

Happy-melon  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 CC||happy-me...@live.com
 Resolution||FIXED

--- Comment #1 from Happy-melon  2011-01-05 16:00:14 UTC 
---
This was done at some point in the past three years...

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are the assignee for the bug.
You are on the CC list for the bug.

___
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l