SourceForge

HTML Tidy

Tracker: Patches

5 [PATCH] correctly identify METADATA_MISSING - ID: 2705873
Last Update: Comment added ( goneri )

Hi,

Thank you this patch <title /> is not identified as a <meta /> tag.

Please apply [PATCH] correctly identify REMOVE_AUTO_REDIRECT first.

---
mozilla/extensions/tidy/tidy/src/access.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/mozilla/extensions/tidy/tidy/src/access.c b/mozilla/extensions/tidy/tidy/src/access.c
index 54583d5..b22eb0d 100644
--- a/mozilla/extensions/tidy/tidy/src/access.c
+++ b/mozilla/extensions/tidy/tidy/src/access.c
@@ -2828,7 +2828,7 @@ static Bool CheckMetaData( TidyDocImpl* doc, Node* node, Bool HasMetaData )
}

if ( !HasMetaData &&
- nodeIsTITLE(node) &&
+ !nodeIsTITLE(node) &&
TY_(nodeIsText)(node->content) )
{
ctmbstr word = textFromOneNode( doc, node->content );
--
1.6.2.1


Gonéri Le Bouder ( goneri ) - 2009-03-23 04:32:30 PDT

5

Closed

Accepted

Nobody/Anonymous

None

None

Public


Comments ( 4 )

Date: 2009-05-14 05:29:35 PDT
Sender: goneri

closed


Date: 2009-03-25 14:38:28 PDT
Sender: arnaud02spacer

Applied. Thanks.


Date: 2009-03-25 10:38:01 PDT
Sender: goneri

With the patch, tidy report this error on the invalide.html file:
line 6 column 3 - Access: [13.2.1.1]: Metadata missing.


Date: 2009-03-25 09:19:10 PDT
Sender: arnaud02spacer

Could you add a standalone HTML example please?


Attached Files ( 3 )

Filename Description Download
0001-correclty-detect-METADATA_MISSING.patch Download
invalide.html Download
valide.html Download

Changes ( 12 )

Field Old Value Date By
status_id Open 2009-05-14 05:29:35 PDT goneri
close_date - 2009-05-14 05:29:35 PDT goneri
allow_comments 1 2009-05-14 05:29:35 PDT goneri
status_id Pending 2009-05-14 05:27:23 PDT goneri
summary [PATH] correctly identify METADATA_MISSING 2009-05-14 05:27:23 PDT goneri
close_date 2009-03-25 14:38 2009-05-14 05:27:23 PDT goneri
status_id Open 2009-03-25 14:38:34 PDT arnaud02
resolution_id None 2009-03-25 14:38:34 PDT arnaud02
close_date - 2009-03-25 14:38:34 PDT arnaud02
File Added 319561: valide.html 2009-03-25 10:35:19 PDT goneri
File Added 319560: invalide.html 2009-03-25 10:35:08 PDT goneri
File Added 319091: 0001-correclty-detect-METADATA_MISSING.patch 2009-03-23 04:32:31 PDT goneri


gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.