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

[RML] [anchor]-tag werkt niet goed met cijfers

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

  • Pinobigbird
  • Registratie: Januari 2002
  • Laatst online: 13:59

Pinobigbird

doesn't share food!

Topicstarter
code:
1
2
3
4
5
6
7
8
9
10
11
[anchor=1]1 zonder end-tag
[anchor=2]2 met end-tag[/anchor]

[anchor=1a]1a zonder end-tag
[anchor=2a]2a met end-tag[/anchor]

[anchor=a1]a1 zonder end-tag
[anchor=a2]a2 met end-tag[/anchor]

[anchor=a]a zonder end-tag
[anchor=b]b met end-tag[/anchor]



geeft:




[anchor=1]1 zonder end-tag
[anchor=2]2 met end-tag[/anchor]


[anchor=1a]1a zonder end-tag
[anchor=2a]2a met end-tag[/anchor]


a1 zonder end-tag
a2 met end-tag


a zonder end-tag
b met end-tag




Bij de bovenste drie voorbeelden worden de anchors niet goed aangemaakt.
Dus wanneer de anchor-naam:
  1. Alleen uit cijfers bestaat
  2. Begint met een cijfer én er geen end-tag gebruikt wordt

Joey: Nice try. See the Netherlands is this make believe place where Peter Pan and Tinkerbell come from.
https://kattenoppasleiderdorp.nl
PV: 3080Wp ZO + 3465Wp NW = 6545Wp totaal 13°tilt


  • crisp
  • Registratie: Februari 2000
  • Laatst online: 19:21

crisp

Devver

Pixelated

een name-attribuut mag in html ook niet met een cijfer beginnen of helemaal uit cijfers bestaan:
ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
en ja, de manier waarop op got naar een bepaalde post wordt gelinkt dmv #<message-id> is ook invalid HTML

[ Voor 3% gewijzigd door crisp op 30-08-2004 21:57 ]

Intentionally left blank


  • Pinobigbird
  • Registratie: Januari 2002
  • Laatst online: 13:59

Pinobigbird

doesn't share food!

Topicstarter
Ik had zelf ook opgezocht of het attribuut name wel of niet uit alleen cijfers mocht bestaan of met cijfers mocht beginnnen.
Dus ik kwam hetvolgende tegen:
nameACDATA#IMPLIEDnamed link end
En dan kom je idd uit op
The document type definition specifies the syntax of HTML element content and attribute values using SGML tokens (e.g., PCDATA, CDATA, NAME, ID, etc.). See [ISO8879] for their full definitions. The following is a summary of key information:
  • CDATA is a sequence of characters from the document character set and may include character entities. User agents should interpret attribute values as follows:
    [...]
  • ID and NAME tokens must begin with a letter ([A-Za-z]) and may be followed by any number of letters, digits ([0-9]), hyphens ("-"), underscores ("_"), colons (":"), and periods (".").
  • IDREF and IDREFS are references to ID tokens defined by other attributes. IDREF is a single token and IDREFS is a space-separated list of tokens.
  • NUMBER tokens must contain at least one digit ([0-9]).
Zoals ík het lees valt het attribuut name dus onder de token CDATA en dus niet onder de token ID and NAME, wat jij quotte.


De volgende code is dan ook WEL Valid HTML 4.0 Transitional!
HTML:
1
2
3
4
5
6
7
8
9
10
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15">
<title></title></head><body>
<a name=123></a>123 zonder end-tag<br>
<a name=456>456 met end-tag</a><br>
<a name=1a></a>1a zonder end-tag<br>
<a name=2a>2a met end-tag</a><br>
<a name=abc></a>abc zonder end-tag<br>
<a name=def>def met end-tag</a><br>
</body></html>



Jouw argument
een name-attribuut mag in html ook niet met een cijfer beginnen of helemaal uit cijfers bestaan
gaat dus niet op.

[ Voor 8% gewijzigd door Pinobigbird op 30-08-2004 23:11 ]

Joey: Nice try. See the Netherlands is this make believe place where Peter Pan and Tinkerbell come from.
https://kattenoppasleiderdorp.nl
PV: 3080Wp ZO + 3465Wp NW = 6545Wp totaal 13°tilt


  • crisp
  • Registratie: Februari 2000
  • Laatst online: 19:21

crisp

Devver

Pixelated

ik moet name-attribuut en name-type idd niet door elkaar halen ;)


anyway, you're right - fixed @ local :)

[ Voor 25% gewijzigd door crisp op 30-08-2004 23:59 ]

Intentionally left blank


Dit topic is gesloten.