BenWard (owner)

Revisions

  • 7c862a BenWard Sat Oct 10 20:36:21 -0700 2009
  • 74bbde BenWard Sat Oct 10 20:35:05 -0700 2009
gist: 207380 Download_button fork
public
Public Clone URL: git://gist.github.com/207380.git
Embed All Files: show embed
HTMLTidy Patch to not drop empty elements that have class a ttributes #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Index: attrs.h
===================================================================
RCS file: /cvsroot/tidy/tidy/src/attrs.h,v
retrieving revision 1.29
diff -r1.29 attrs.h
325a326
> #define attrGetCLASS( nod ) TY_(AttrGetById)( nod, TidyAttr_CLASS )
Index: parser.c
===================================================================
RCS file: /cvsroot/tidy/tidy/src/parser.c,v
retrieving revision 1.187
diff -r1.187 parser.c
289a290,294
> /* Microformats value-class-pattern data fix. Allow empty elements
> *with a @class attribute to remain (otherwise they would be dropped) */
> /* attributes */
> if ( attrGetCLASS(element) )
> return no;
>