"<a> cannot copy name attribute to id"

View: New views
4 Messages — Rating Filter:   Alert me  

"<a> cannot copy name attribute to id"

by Buzzer-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

What mean these warnings and how do i fix it?
line 83 column 1 - Warning: <a> cannot copy name attribute to id
line 96 column 1 - Warning: <a> cannot copy name attribute to id
line 109 column 1 - Warning: <a> cannot copy name attribute to id
line 122 column 1 - Warning: <a> cannot copy name attribute to id
line 135 column 1 - Warning: <a> cannot copy name attribute to id
line 148 column 1 - Warning: <a> cannot copy name attribute to id
line 161 column 1 - Warning: <a> cannot copy name attribute to id
line 174 column 1 - Warning: <a> cannot copy name attribute to id
line 187 column 1 - Warning: <a> cannot copy name attribute to id
line 200 column 1 - Warning: <a> cannot copy name attribute to id

Info: Doctype given is "-//W3C//DTD HTML 4.01 Transitional//EN"
Info: Document content looks like HTML 4.01 Transitional
10 warnings, 0 errors were found!

--
/Buzzer () кампания ascii ribbon - против писем в html формате
                /\ www.asciiribbon.org   - против проприетарных вложений




Re: "<a> cannot copy name attribute to id"

by Fred Bone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On 22 October 2009 at 13:32, Buzzer said:

> What mean these warnings and how do i fix it?
> line 83 column 1 - Warning: <a> cannot copy name attribute to id
> line 96 column 1 - Warning: <a> cannot copy name attribute to id
> line 109 column 1 - Warning: <a> cannot copy name attribute to id
> line 122 column 1 - Warning: <a> cannot copy name attribute to id
> line 135 column 1 - Warning: <a> cannot copy name attribute to id
> line 148 column 1 - Warning: <a> cannot copy name attribute to id
> line 161 column 1 - Warning: <a> cannot copy name attribute to id
> line 174 column 1 - Warning: <a> cannot copy name attribute to id
> line 187 column 1 - Warning: <a> cannot copy name attribute to id
> line 200 column 1 - Warning: <a> cannot copy name attribute to id

Probably that the value is illegal, either structurally or because it
would be a duplicate.



Re: "<a> cannot copy name attribute to id"

by Buzzer-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

22-Oct-2009 числа в 22:14 часов, ты написал(а) следующее:

> On 22 October 2009 at 13:32, Buzzer said:
>
> > What mean these warnings and how do i fix it?
> > line 83 column 1 - Warning: <a> cannot copy name attribute to id
> > line 96 column 1 - Warning: <a> cannot copy name attribute to id
> > line 109 column 1 - Warning: <a> cannot copy name attribute to id
> > line 122 column 1 - Warning: <a> cannot copy name attribute to id
> > line 135 column 1 - Warning: <a> cannot copy name attribute to id
> > line 148 column 1 - Warning: <a> cannot copy name attribute to id
> > line 161 column 1 - Warning: <a> cannot copy name attribute to id
> > line 174 column 1 - Warning: <a> cannot copy name attribute to id
> > line 187 column 1 - Warning: <a> cannot copy name attribute to id
> > line 200 column 1 - Warning: <a> cannot copy name attribute to id
>
> Probably that the value is illegal, either structurally or because it
> would be a duplicate.


line 83: <a name="01">1</a>
line 96: <a name="02">2</a>
line 109: <a name="03">3</a>
line 112: <a name="04">4</a>

<td class="list">
 <a name="04">4</a>
</td>

Something wrong here?

--
/Buzzer () кампания ascii ribbon - против писем в html формате
                /\ www.asciiribbon.org   - против проприетарных вложений




Re: "<a> cannot copy name attribute to id"

by Richard O'Keefe :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I already replied privately.
HTML 3.2 had <a name="xx">.
HTML 4 added <any-element id="xx">,
and the recommended maximise-your-interoperability practice
for <a> is to copy <a name="xx" id="xx">.
(If an <a> has both name= and id= they must have the same
value, but having both at the same time is intended.)
Tidy wants to help copy the name= to name= AND id=
BUT an id= attribute value must start with a letter.
<a name="01" id="01"> would not be legal.
So Tidy won't do it.  Changing to <a name="N01"> would
make Tidy happy.