Follow TV Tropes

Following

note and labelnote markup bug

Go To

Nocturna Since: May, 2011
#1: Jul 2nd 2012 at 10:14:21 AM

If you have identical notes or labelnotes on a page, click on any note/labelnote opens the first note/labelnote, and that only. For example:

note 

note 

If you click on the second note, the first note opens, instead of the second note.

Telcontar In uffish thought from England Since: Feb, 2012
In uffish thought
#2: Jul 2nd 2012 at 10:16:41 AM

I remember that this came up in the original thread where they were being worked out, and clicking one could open one even in someone else's post. Eddie gave them all an individual code or something, but I guess it must be dependent on the text in them so it still happens if they're identical.

That was the amazing part. Things just keep going.
robster2001 Very Occasional Editor from Richmond, VA Since: Jan, 2001 Relationship Status: Yes, I'm alone, but I'm alone and free
Very Occasional Editor
#3: Jul 2nd 2012 at 1:47:04 PM

OK, quick test...

note 

note 

The second one has an extra space at the end... and opens separately, so there's your workaround for now. Just put a space at the end of one of the two identical notes.

edited 2nd Jul '12 1:47:49 PM by robster2001

I am not a mod, and I don't play one on TV.
Nocturna Since: May, 2011
#4: Jul 2nd 2012 at 8:04:49 PM

[up] That only works 1) if there's only two identical notes (the page I discovered this on had at least half a dozen) and 2) as long as you're aware it's identical.

Stratadrake Dragon Writer Since: Oct, 2009
Dragon Writer
#5: Jul 4th 2012 at 11:04:27 AM

It would seem that the wiki generates an HTML id based on a hash of the note's interior text string:


  • note  -> id="note0d4ei"
  • note  -> id="note0d4ei"
  • note  -> id="note21x7e"

You can't have multiple HTML elements with the same ID value; only the first one will be acknowledged. Every ID attribute must be unique; adding even a simple numeric counter to the hashing routine process would fix the bug.

edited 4th Jul '12 11:08:43 AM by Stratadrake

An Ear Worm is like a Rickroll: It is never going to give you up.
Xtifr World's Toughest Milkman Since: Jan, 2001 Relationship Status: Having tea with Cthulhu
World's Toughest Milkman
#6: Jul 6th 2012 at 10:39:30 PM

Can I post a second report here? Or should I start a new thread? The note and labelnote tags don't seem to work in preview mode. You can see the marker, but clicking it, on a preview page, does nothing, so you can't make sure the note itself looks right. (At least when I tried it.)

edited 6th Jul '12 10:40:10 PM by Xtifr

Speaking words of fandom: let it squee, let it squee.
battosaijoe Since: Jan, 2010
DarkConfidant Since: Aug, 2011
#8: Jul 15th 2012 at 4:00:20 PM

I've noticed that sometimes, the closing markup for a note tag is just completely unparsed as well. See UsefulNotes.Magic The Gathering for an example of how the markup breaks down.

EDIT: I think I found the problem - it shows up whenever the preceding closing note markup is done wrong - in this case, I miswrote it as [/note]], instead of with an opening double bracket.

edited 15th Jul '12 4:57:51 PM by DarkConfidant

Telcontar In uffish thought from England Since: Feb, 2012
In uffish thought
#9: Jul 23rd 2012 at 2:05:13 PM

Still happening — see FELH 2's troper page. Can the ID be random rather than text-dependent?

That was the amazing part. Things just keep going.
Willbyr Hi (Y2K) Relationship Status: With my statistically significant other
Hi
#10: Mar 2nd 2016 at 2:14:27 PM

This has been reported to Query Bugs; locking.

Add Post

Total posts: 10
Top