RE: [PHP] Re: anchor name on URL
| From: | Boyd, Todd M. | Date: | Tue, 18 Nov 2008 20:41:31 +0000 |
| Subject: | RE: [PHP] Re: anchor name on URL | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-283487@lists.php.net to get a copy of this message | ||
> -----Original Message-----
> From: Ashley Sheridan [mailto:ash@ashleysheridan.co.uk]
> Sent: Tuesday, November 18, 2008 2:34 PM
> To: Stan
> Cc: php-general@lists.php.net
> Subject: Re: [PHP] Re: anchor name on URL
>
> On Tue, 2008-11-18 at 14:21 -0600, Stan wrote:
> > Well ... you got me thinking ...
> >
> > I moved the placement of the named anchor to inside the first <td>
> tag in
> > the row and it works (instead of inside the <tr> tag.
> >
> > Sorry.
> >
> >
> >
> Ah, it seems that the doctype might have been to blame then, as an <a>
> tag cannot exist within a <tr> unless it is in a <td> or <th>. If in
> doubt, run your page through the W3C Validator, as it's a great help
in
> catching bugs.
I also think it's worth mentioning that the XHTML standard will refer to
the "id" attribute, not the "name" attribute, when searching for a link
in the format "#identifier". Many people double-up (putting the same
value in both attributes) for backwards-compatibility. I look forward to
the day when markup isn't so bloated due to the inability of certain web
browser franchises to "get it right."
// Todd