From 82fc65686378be7526249b92ddf9214a314bb8f8 Mon Sep 17 00:00:00 2001 From: Geoff McLane Date: Sun, 18 Jan 2015 14:46:12 +0100 Subject: [PATCH] exception attr tabindex can begin with '-' --- src/attrs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/attrs.c b/src/attrs.c index 8783248..04fbc49 100644 --- a/src/attrs.c +++ b/src/attrs.c @@ -1763,6 +1763,9 @@ void CheckNumber( TidyDocImpl* doc, Node *node, AttVal *attval) /* font size may be preceded by + or - */ if ( nodeIsFONT(node) && (*p == '+' || *p == '-') ) ++p; + /* tabindex may be preceeded by - */ + if (attval->attribute && (strcmp(attval->attribute,"tabindex") == 0) && (*p == '-')) + ++p; while (*p) {