logo       

[ tidy-Bugs-1231279 ] detect double used id attributes: msg#00017

web.html-tidy.tracker

Subject: [ tidy-Bugs-1231279 ] detect double used id attributes

Bugs item #1231279, was opened at 07/01/05 15:24
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1231279&group_id=27659

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: HTML/XML/XHTML Parser
Group: Current - all platforms
>Status: Closed
Resolution: Fixed
Priority: 6
Submitted By: anatoly techtonik (techtonik)
Assigned to: Nobody/Anonymous (nobody)
Summary: detect double used id attributes

Initial Comment:
ID attributes must be unique accross document or else
JavaScript will be unable to operate with them because
DOM model is wrong.It will be nice to detect invalid
and/or double id's with tidy.

----------------------------------------------------------------------

>Comment By: SourceForge Robot (sf-robot)
Date: 08/04/05 06:43

Message:
Logged In: YES
user_id=1312539

This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 30 days (the time period specified by
the administrator of this Tracker).

----------------------------------------------------------------------

Comment By: Arnaud Desitter (arnaud02)
Date: 07/05/05 06:21

Message:
Logged In: YES
user_id=566665

Fixed in CVS repository.


----------------------------------------------------------------------

Comment By: Arnaud Desitter (arnaud02)
Date: 07/05/05 01:47

Message:
Logged In: YES
user_id=566665

It is a bug. A shorter test case:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd";>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=us-ascii">
<title>qq</title>
</head>
<body>
<div id="pageHeaders">x</div>
<div id="pageHeaders">y</div>
</body>
</html>


----------------------------------------------------------------------

Comment By: anatoly techtonik (techtonik)
Date: 07/04/05 14:26

Message:
Logged In: YES
user_id=669020

Search for <div id="pageHeaders">

>tidy.exe -eq language.html
line 3 column 1 - Warning: <body> proprietary attribute
"oncontextmenu"
line 89 column 36 - Warning: <table> lacks "summary" attribute

>tidy.exe -V
HTML Tidy for Windows released on 12 April 2005


----------------------------------------------------------------------

Comment By: Arnaud Desitter (arnaud02)
Date: 07/04/05 07:07

Message:
Logged In: YES
user_id=566665

AFAIK, tidy does so (see function CheckId() in attrs.c).
Could you provide an example where this is not true and tell
which version of tidy you are using ?



----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=390963&aid=1231279&group_id=27659


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise