On Fri, Feb 06, 2009 at 11:06:11AM +0100, Hofmann Johannes wrote:
On Fri, Feb 06, 2009 at 10:58:37AM +0100, Hofmann Johannes wrote:
On Fri, Feb 06, 2009 at 06:22:54AM +0000, corvid wrote:
<a name="a"></a> <p id="p"></p> <p> <a name="same" id="same"></a>
gives HTML warning: line 2, 'id' and 'name' attribute of <a> tag differ HTML warning: line 4, Anchor names must be unique within the document
Dillo would seem to be unhappy now that the id attr is checked before open_a checks the name attr -- but then it looks like the move was made in October (a88b4a31cb7a) and I have a dillo around from roughly Dec. 22 that does not have a problem with this.
Yes, the problem was caused by moving the check.
In any case, I don't know whether there are styleEngine issues with just sticking the id check back after the open.
We need to parse the "id" attribute before the open, as it's used to determine the style used in open*.
But I don't understand the reason for the name/id check in the first place:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>foo bar</title> </head> <body> <a name="foo" id="bar">foo bar</a> </body> </html>
is correct HTML according to http://validator.w3.org/. I would propose to remove this check completely. Opinions?
Ooops, stop! I just found this: http://www.validome.org/lang/ge/errors/MISC/3005 It seems that name and id must be equal and it's a bug in http://validator.w3.org/ that it doesn't catch it. I will try to fix the check in dillo.
Yeah, please give it a hand. Dillo is broken on this check, e.g.: http://www.validome.org/lang/en/ Dillo counts one bug: "HTML warning: line 30, Anchor names must be unique within the document" but line 30 is OK: "<a id="top" name="top"></a>" -- Cheers Jorge.-