Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

[BUG] [url] in [ul] gaat fout

Pagina: 1
Acties:
  • 216 views sinds 30-01-2008

  • deadinspace
  • Registratie: Juni 2001
  • Laatst online: 22-11 21:50

deadinspace

The what goes where now?

Topicstarter
Als je met UBB codes een unordered list maakt, en in de eerste list item een url opneemt, dan gaat dat mis:
code:
1
2
3
[ul][*][url=http://www.google.com]google[/url]
[*]bladiebla
[*]meh[/ul]

genereert het volgende:bestaande uit deze HTML:
code:
1
2
3
<ul class="rml-list">&bull; <a href="http://www.google.com" rel="external" class="link">google</a>
<li>bladiebla
<li>meh</ul>

Welke hier zo rendert:
Afbeeldingslocatie: http://gemini.luon.net/~marcelm/tmp/url-in-list1.png

Hij genereert voor de eerste list item dus om de een of andere reden geen <li>, maar een &bull;.




Als de url niet de eerste list item is, dan is het resultaat nog charmanter :+

code:
1
2
3
4
5
[ul][*]foo
[*]bar
[*][url=http://www.google.com]google[/url]
[*]bladiebla
[*]meh[/ul]

genereert:bestaat uit:
code:
1
2
3
4
5
<ul class="rml-list">&bull; foo
&bull; bar
&bull; <a href="http://www.google.com" rel="external" class="link">google</a>
<li>bladiebla
<li>meh</ul>

rendert als:
Afbeeldingslocatie: http://gemini.luon.net/~marcelm/tmp/url-in-list2.png




Zonder urls erin gaat het allemaal prima:

code:
1
2
3
[ul][*]foo
[*]bar
[*]baz[/ul]

genereert:
  • foo
  • bar
  • baz
bestaande uit HTML:
code:
1
2
3
<ul class="rml-list"><li>foo
<li>bar
<li>baz</ul>

rendert als:
Afbeeldingslocatie: http://gemini.luon.net/~marcelm/tmp/url-in-list3.png

  • BtM909
  • Registratie: Juni 2000
  • Niet online

BtM909

Watch out Guys...

  1. google
  2. bladiebla
  3. meh
Geldt overigens ook voor [ol] :)

Ace of Base vs Charli XCX - All That She Boom Claps (RMT) | Clean Bandit vs Galantis - I'd Rather Be You (RMT)
You've moved up on my notch-list. You have 1 notch
I have a black belt in Kung Flu.


  • chem
  • Registratie: Oktober 2000
  • Laatst online: 22-11 22:17

chem

Reist de wereld rond

Klaar voor een nieuwe uitdaging.


Dit topic is gesloten.