#74 [PATCH] correctly identify METADATA_MISSING

closed-accepted
nobody
None
5
2009-05-14
2009-03-23
No

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

Discussion

  • Could you add a standalone HTML example please?

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

     
  • Applied. Thanks.

     
    • status: open --> pending-accepted
     
    • summary: [PATH] correctly identify METADATA_MISSING --> [PATCH] correctly identify METADATA_MISSING
    • status: pending-accepted --> open-accepted
     
    • status: open-accepted --> closed-accepted
     
  • closed