tidy-ext 0.1.7
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +4 -0
- data/LICENSE +50 -0
- data/README +12 -0
- data/Rakefile +60 -0
- data/VERSION +1 -0
- data/ext/tidy/access.c +3310 -0
- data/ext/tidy/access.h +279 -0
- data/ext/tidy/alloc.c +107 -0
- data/ext/tidy/attrask.c +209 -0
- data/ext/tidy/attrdict.c +2398 -0
- data/ext/tidy/attrdict.h +122 -0
- data/ext/tidy/attrget.c +213 -0
- data/ext/tidy/attrs.c +1911 -0
- data/ext/tidy/attrs.h +374 -0
- data/ext/tidy/buffio.c +232 -0
- data/ext/tidy/buffio.h +118 -0
- data/ext/tidy/charsets.c +1032 -0
- data/ext/tidy/charsets.h +14 -0
- data/ext/tidy/clean.c +2674 -0
- data/ext/tidy/clean.h +87 -0
- data/ext/tidy/config.c +1746 -0
- data/ext/tidy/config.h +153 -0
- data/ext/tidy/entities.c +419 -0
- data/ext/tidy/entities.h +24 -0
- data/ext/tidy/extconf.rb +5 -0
- data/ext/tidy/fileio.c +106 -0
- data/ext/tidy/fileio.h +46 -0
- data/ext/tidy/forward.h +69 -0
- data/ext/tidy/iconvtc.c +105 -0
- data/ext/tidy/iconvtc.h +15 -0
- data/ext/tidy/istack.c +373 -0
- data/ext/tidy/lexer.c +3825 -0
- data/ext/tidy/lexer.h +617 -0
- data/ext/tidy/localize.c +1882 -0
- data/ext/tidy/mappedio.c +329 -0
- data/ext/tidy/mappedio.h +16 -0
- data/ext/tidy/message.h +207 -0
- data/ext/tidy/parser.c +4408 -0
- data/ext/tidy/parser.h +76 -0
- data/ext/tidy/platform.h +636 -0
- data/ext/tidy/pprint.c +2276 -0
- data/ext/tidy/pprint.h +93 -0
- data/ext/tidy/ruby-tidy.c +195 -0
- data/ext/tidy/streamio.c +1407 -0
- data/ext/tidy/streamio.h +222 -0
- data/ext/tidy/tagask.c +286 -0
- data/ext/tidy/tags.c +955 -0
- data/ext/tidy/tags.h +235 -0
- data/ext/tidy/tidy-int.h +129 -0
- data/ext/tidy/tidy.h +1097 -0
- data/ext/tidy/tidyenum.h +622 -0
- data/ext/tidy/tidylib.c +1751 -0
- data/ext/tidy/tmbstr.c +306 -0
- data/ext/tidy/tmbstr.h +92 -0
- data/ext/tidy/utf8.c +539 -0
- data/ext/tidy/utf8.h +52 -0
- data/ext/tidy/version.h +14 -0
- data/ext/tidy/win32tc.c +795 -0
- data/ext/tidy/win32tc.h +19 -0
- data/spec/spec_helper.rb +5 -0
- data/spec/tidy/compat_spec.rb +44 -0
- data/spec/tidy/remote_uri_spec.rb +14 -0
- data/spec/tidy/test1.html +5 -0
- data/spec/tidy/tidy_spec.rb +34 -0
- metadata +125 -0
data/ext/tidy/streamio.h
ADDED
@@ -0,0 +1,222 @@
|
|
1
|
+
#ifndef __STREAMIO_H__
|
2
|
+
#define __STREAMIO_H__
|
3
|
+
|
4
|
+
/* streamio.h -- handles character stream I/O
|
5
|
+
|
6
|
+
(c) 1998-2007 (W3C) MIT, ERCIM, Keio University
|
7
|
+
See tidy.h for the copyright notice.
|
8
|
+
|
9
|
+
CVS Info :
|
10
|
+
|
11
|
+
$Author: arnaud02 $
|
12
|
+
$Date: 2007/07/22 09:33:26 $
|
13
|
+
$Revision: 1.21 $
|
14
|
+
|
15
|
+
Wrapper around Tidy input source and output sink
|
16
|
+
that calls appropriate interfaces, and applies
|
17
|
+
necessary char encoding transformations: to/from
|
18
|
+
ISO-10646 and/or UTF-8.
|
19
|
+
|
20
|
+
*/
|
21
|
+
|
22
|
+
#include "forward.h"
|
23
|
+
#include "buffio.h"
|
24
|
+
#include "fileio.h"
|
25
|
+
|
26
|
+
#ifdef __cplusplus
|
27
|
+
extern "C"
|
28
|
+
{
|
29
|
+
#endif
|
30
|
+
typedef enum
|
31
|
+
{
|
32
|
+
FileIO,
|
33
|
+
BufferIO,
|
34
|
+
UserIO
|
35
|
+
} IOType;
|
36
|
+
|
37
|
+
/* states for ISO 2022
|
38
|
+
|
39
|
+
A document in ISO-2022 based encoding uses some ESC sequences called
|
40
|
+
"designator" to switch character sets. The designators defined and
|
41
|
+
used in ISO-2022-JP are:
|
42
|
+
|
43
|
+
"ESC" + "(" + ? for ISO646 variants
|
44
|
+
|
45
|
+
"ESC" + "$" + ? and
|
46
|
+
"ESC" + "$" + "(" + ? for multibyte character sets
|
47
|
+
*/
|
48
|
+
typedef enum
|
49
|
+
{
|
50
|
+
FSM_ASCII,
|
51
|
+
FSM_ESC,
|
52
|
+
FSM_ESCD,
|
53
|
+
FSM_ESCDP,
|
54
|
+
FSM_ESCP,
|
55
|
+
FSM_NONASCII
|
56
|
+
} ISO2022State;
|
57
|
+
|
58
|
+
/************************
|
59
|
+
** Source
|
60
|
+
************************/
|
61
|
+
|
62
|
+
enum
|
63
|
+
{
|
64
|
+
CHARBUF_SIZE=5,
|
65
|
+
LASTPOS_SIZE=64
|
66
|
+
};
|
67
|
+
|
68
|
+
/* non-raw input is cleaned up*/
|
69
|
+
struct _StreamIn
|
70
|
+
{
|
71
|
+
ISO2022State state; /* FSM for ISO2022 */
|
72
|
+
Bool pushed;
|
73
|
+
TidyAllocator *allocator;
|
74
|
+
tchar* charbuf;
|
75
|
+
uint bufpos;
|
76
|
+
uint bufsize;
|
77
|
+
int tabs;
|
78
|
+
int lastcols[LASTPOS_SIZE];
|
79
|
+
unsigned short curlastpos; /* current last position in lastcols */
|
80
|
+
unsigned short firstlastpos; /* first valid last position in lastcols */
|
81
|
+
int curcol;
|
82
|
+
int curline;
|
83
|
+
int encoding;
|
84
|
+
IOType iotype;
|
85
|
+
|
86
|
+
TidyInputSource source;
|
87
|
+
|
88
|
+
#ifdef TIDY_WIN32_MLANG_SUPPORT
|
89
|
+
void* mlang;
|
90
|
+
#endif
|
91
|
+
|
92
|
+
#ifdef TIDY_STORE_ORIGINAL_TEXT
|
93
|
+
tmbstr otextbuf;
|
94
|
+
size_t otextsize;
|
95
|
+
uint otextlen;
|
96
|
+
#endif
|
97
|
+
|
98
|
+
/* Pointer back to document for error reporting */
|
99
|
+
TidyDocImpl* doc;
|
100
|
+
};
|
101
|
+
|
102
|
+
StreamIn* TY_(initStreamIn)( TidyDocImpl* doc, int encoding );
|
103
|
+
void TY_(freeStreamIn)(StreamIn* in);
|
104
|
+
|
105
|
+
StreamIn* TY_(FileInput)( TidyDocImpl* doc, FILE* fp, int encoding );
|
106
|
+
StreamIn* TY_(BufferInput)( TidyDocImpl* doc, TidyBuffer* content, int encoding );
|
107
|
+
StreamIn* TY_(UserInput)( TidyDocImpl* doc, TidyInputSource* source, int encoding );
|
108
|
+
|
109
|
+
int TY_(ReadBOMEncoding)(StreamIn *in);
|
110
|
+
uint TY_(ReadChar)( StreamIn* in );
|
111
|
+
void TY_(UngetChar)( uint c, StreamIn* in );
|
112
|
+
Bool TY_(IsEOF)( StreamIn* in );
|
113
|
+
|
114
|
+
|
115
|
+
/************************
|
116
|
+
** Sink
|
117
|
+
************************/
|
118
|
+
|
119
|
+
struct _StreamOut
|
120
|
+
{
|
121
|
+
int encoding;
|
122
|
+
ISO2022State state; /* for ISO 2022 */
|
123
|
+
uint nl;
|
124
|
+
|
125
|
+
#ifdef TIDY_WIN32_MLANG_SUPPORT
|
126
|
+
void* mlang;
|
127
|
+
#endif
|
128
|
+
|
129
|
+
IOType iotype;
|
130
|
+
TidyOutputSink sink;
|
131
|
+
};
|
132
|
+
|
133
|
+
StreamOut* TY_(FileOutput)( TidyDocImpl *doc, FILE* fp, int encoding, uint newln );
|
134
|
+
StreamOut* TY_(BufferOutput)( TidyDocImpl *doc, TidyBuffer* buf, int encoding, uint newln );
|
135
|
+
StreamOut* TY_(UserOutput)( TidyDocImpl *doc, TidyOutputSink* sink, int encoding, uint newln );
|
136
|
+
|
137
|
+
StreamOut* TY_(StdErrOutput)(void);
|
138
|
+
/* StreamOut* StdOutOutput(void); */
|
139
|
+
void TY_(ReleaseStreamOut)( TidyDocImpl *doc, StreamOut* out );
|
140
|
+
|
141
|
+
void TY_(WriteChar)( uint c, StreamOut* out );
|
142
|
+
void TY_(outBOM)( StreamOut *out );
|
143
|
+
|
144
|
+
ctmbstr TY_(GetEncodingNameFromTidyId)(uint id);
|
145
|
+
ctmbstr TY_(GetEncodingOptNameFromTidyId)(uint id);
|
146
|
+
int TY_(GetCharEncodingFromOptName)(ctmbstr charenc);
|
147
|
+
|
148
|
+
/************************
|
149
|
+
** Misc
|
150
|
+
************************/
|
151
|
+
|
152
|
+
/* character encodings
|
153
|
+
*/
|
154
|
+
#define RAW 0
|
155
|
+
#define ASCII 1
|
156
|
+
#define LATIN0 2
|
157
|
+
#define LATIN1 3
|
158
|
+
#define UTF8 4
|
159
|
+
#define ISO2022 5
|
160
|
+
#define MACROMAN 6
|
161
|
+
#define WIN1252 7
|
162
|
+
#define IBM858 8
|
163
|
+
|
164
|
+
#if SUPPORT_UTF16_ENCODINGS
|
165
|
+
#define UTF16LE 9
|
166
|
+
#define UTF16BE 10
|
167
|
+
#define UTF16 11
|
168
|
+
#endif
|
169
|
+
|
170
|
+
/* Note that Big5 and SHIFTJIS are not converted to ISO 10646 codepoints
|
171
|
+
** (i.e., to Unicode) before being recoded into UTF-8. This may be
|
172
|
+
** confusing: usually UTF-8 implies ISO10646 codepoints.
|
173
|
+
*/
|
174
|
+
#if SUPPORT_ASIAN_ENCODINGS
|
175
|
+
#if SUPPORT_UTF16_ENCODINGS
|
176
|
+
#define BIG5 12
|
177
|
+
#define SHIFTJIS 13
|
178
|
+
#else
|
179
|
+
#define BIG5 9
|
180
|
+
#define SHIFTJIS 10
|
181
|
+
#endif
|
182
|
+
#endif
|
183
|
+
|
184
|
+
#ifdef TIDY_WIN32_MLANG_SUPPORT
|
185
|
+
/* hack: windows code page numbers start at 37 */
|
186
|
+
#define WIN32MLANG 36
|
187
|
+
#endif
|
188
|
+
|
189
|
+
|
190
|
+
/* char encoding used when replacing illegal SGML chars,
|
191
|
+
** regardless of specified encoding. Set at compile time
|
192
|
+
** to either Windows or Mac.
|
193
|
+
*/
|
194
|
+
extern const int TY_(ReplacementCharEncoding);
|
195
|
+
|
196
|
+
/* Function for conversion from Windows-1252 to Unicode */
|
197
|
+
uint TY_(DecodeWin1252)(uint c);
|
198
|
+
|
199
|
+
/* Function to convert from MacRoman to Unicode */
|
200
|
+
uint TY_(DecodeMacRoman)(uint c);
|
201
|
+
|
202
|
+
#ifdef __cplusplus
|
203
|
+
}
|
204
|
+
#endif
|
205
|
+
|
206
|
+
|
207
|
+
/* Use numeric constants as opposed to escape chars (\r, \n)
|
208
|
+
** to avoid conflict Mac compilers that may re-define these.
|
209
|
+
*/
|
210
|
+
#define CR 0xD
|
211
|
+
#define LF 0xA
|
212
|
+
|
213
|
+
#if defined(MAC_OS_CLASSIC)
|
214
|
+
#define DEFAULT_NL_CONFIG TidyCR
|
215
|
+
#elif defined(_WIN32) || defined(OS2_OS)
|
216
|
+
#define DEFAULT_NL_CONFIG TidyCRLF
|
217
|
+
#else
|
218
|
+
#define DEFAULT_NL_CONFIG TidyLF
|
219
|
+
#endif
|
220
|
+
|
221
|
+
|
222
|
+
#endif /* __STREAMIO_H__ */
|
data/ext/tidy/tagask.c
ADDED
@@ -0,0 +1,286 @@
|
|
1
|
+
/* tagask.c -- Interrogate node type
|
2
|
+
|
3
|
+
(c) 1998-2006 (W3C) MIT, ERCIM, Keio University
|
4
|
+
See tidy.h for the copyright notice.
|
5
|
+
|
6
|
+
CVS Info :
|
7
|
+
|
8
|
+
$Author: arnaud02 $
|
9
|
+
$Date: 2006/09/12 15:14:44 $
|
10
|
+
$Revision: 1.6 $
|
11
|
+
|
12
|
+
*/
|
13
|
+
|
14
|
+
#include "tidy-int.h"
|
15
|
+
#include "tags.h"
|
16
|
+
#include "tidy.h"
|
17
|
+
|
18
|
+
Bool TIDY_CALL tidyNodeIsText( TidyNode tnod )
|
19
|
+
{ return TY_(nodeIsText)( tidyNodeToImpl(tnod) );
|
20
|
+
}
|
21
|
+
Bool tidyNodeCMIsBlock( TidyNode tnod ); /* not exported yet */
|
22
|
+
Bool tidyNodeCMIsBlock( TidyNode tnod )
|
23
|
+
{ return TY_(nodeCMIsBlock)( tidyNodeToImpl(tnod) );
|
24
|
+
}
|
25
|
+
Bool tidyNodeCMIsInline( TidyNode tnod ); /* not exported yet */
|
26
|
+
Bool tidyNodeCMIsInline( TidyNode tnod )
|
27
|
+
{ return TY_(nodeCMIsInline)( tidyNodeToImpl(tnod) );
|
28
|
+
}
|
29
|
+
Bool tidyNodeCMIsEmpty( TidyNode tnod ); /* not exported yet */
|
30
|
+
Bool tidyNodeCMIsEmpty( TidyNode tnod )
|
31
|
+
{ return TY_(nodeCMIsEmpty)( tidyNodeToImpl(tnod) );
|
32
|
+
}
|
33
|
+
Bool TIDY_CALL tidyNodeIsHeader( TidyNode tnod )
|
34
|
+
{ return TY_(nodeIsHeader)( tidyNodeToImpl(tnod) );
|
35
|
+
}
|
36
|
+
|
37
|
+
Bool TIDY_CALL tidyNodeIsHTML( TidyNode tnod )
|
38
|
+
{ return nodeIsHTML( tidyNodeToImpl(tnod) );
|
39
|
+
}
|
40
|
+
Bool TIDY_CALL tidyNodeIsHEAD( TidyNode tnod )
|
41
|
+
{ return nodeIsHEAD( tidyNodeToImpl(tnod) );
|
42
|
+
}
|
43
|
+
Bool TIDY_CALL tidyNodeIsTITLE( TidyNode tnod )
|
44
|
+
{ return nodeIsTITLE( tidyNodeToImpl(tnod) );
|
45
|
+
}
|
46
|
+
Bool TIDY_CALL tidyNodeIsBASE( TidyNode tnod )
|
47
|
+
{ return nodeIsBASE( tidyNodeToImpl(tnod) );
|
48
|
+
}
|
49
|
+
Bool TIDY_CALL tidyNodeIsMETA( TidyNode tnod )
|
50
|
+
{ return nodeIsMETA( tidyNodeToImpl(tnod) );
|
51
|
+
}
|
52
|
+
Bool TIDY_CALL tidyNodeIsBODY( TidyNode tnod )
|
53
|
+
{ return nodeIsBODY( tidyNodeToImpl(tnod) );
|
54
|
+
}
|
55
|
+
Bool TIDY_CALL tidyNodeIsFRAMESET( TidyNode tnod )
|
56
|
+
{ return nodeIsFRAMESET( tidyNodeToImpl(tnod) );
|
57
|
+
}
|
58
|
+
Bool TIDY_CALL tidyNodeIsFRAME( TidyNode tnod )
|
59
|
+
{ return nodeIsFRAME( tidyNodeToImpl(tnod) );
|
60
|
+
}
|
61
|
+
Bool TIDY_CALL tidyNodeIsIFRAME( TidyNode tnod )
|
62
|
+
{ return nodeIsIFRAME( tidyNodeToImpl(tnod) );
|
63
|
+
}
|
64
|
+
Bool TIDY_CALL tidyNodeIsNOFRAMES( TidyNode tnod )
|
65
|
+
{ return nodeIsNOFRAMES( tidyNodeToImpl(tnod) );
|
66
|
+
}
|
67
|
+
Bool TIDY_CALL tidyNodeIsHR( TidyNode tnod )
|
68
|
+
{ return nodeIsHR( tidyNodeToImpl(tnod) );
|
69
|
+
}
|
70
|
+
Bool TIDY_CALL tidyNodeIsH1( TidyNode tnod )
|
71
|
+
{ return nodeIsH1( tidyNodeToImpl(tnod) );
|
72
|
+
}
|
73
|
+
Bool TIDY_CALL tidyNodeIsH2( TidyNode tnod )
|
74
|
+
{ return nodeIsH2( tidyNodeToImpl(tnod) );
|
75
|
+
}
|
76
|
+
Bool TIDY_CALL tidyNodeIsPRE( TidyNode tnod )
|
77
|
+
{ return nodeIsPRE( tidyNodeToImpl(tnod) );
|
78
|
+
}
|
79
|
+
Bool TIDY_CALL tidyNodeIsLISTING( TidyNode tnod )
|
80
|
+
{ return nodeIsLISTING( tidyNodeToImpl(tnod) );
|
81
|
+
}
|
82
|
+
Bool TIDY_CALL tidyNodeIsP( TidyNode tnod )
|
83
|
+
{ return nodeIsP( tidyNodeToImpl(tnod) );
|
84
|
+
}
|
85
|
+
Bool TIDY_CALL tidyNodeIsUL( TidyNode tnod )
|
86
|
+
{ return nodeIsUL( tidyNodeToImpl(tnod) );
|
87
|
+
}
|
88
|
+
Bool TIDY_CALL tidyNodeIsOL( TidyNode tnod )
|
89
|
+
{ return nodeIsOL( tidyNodeToImpl(tnod) );
|
90
|
+
}
|
91
|
+
Bool TIDY_CALL tidyNodeIsDL( TidyNode tnod )
|
92
|
+
{ return nodeIsDL( tidyNodeToImpl(tnod) );
|
93
|
+
}
|
94
|
+
Bool TIDY_CALL tidyNodeIsDIR( TidyNode tnod )
|
95
|
+
{ return nodeIsDIR( tidyNodeToImpl(tnod) );
|
96
|
+
}
|
97
|
+
Bool TIDY_CALL tidyNodeIsLI( TidyNode tnod )
|
98
|
+
{ return nodeIsLI( tidyNodeToImpl(tnod) );
|
99
|
+
}
|
100
|
+
Bool TIDY_CALL tidyNodeIsDT( TidyNode tnod )
|
101
|
+
{ return nodeIsDT( tidyNodeToImpl(tnod) );
|
102
|
+
}
|
103
|
+
Bool TIDY_CALL tidyNodeIsDD( TidyNode tnod )
|
104
|
+
{ return nodeIsDD( tidyNodeToImpl(tnod) );
|
105
|
+
}
|
106
|
+
Bool TIDY_CALL tidyNodeIsTABLE( TidyNode tnod )
|
107
|
+
{ return nodeIsTABLE( tidyNodeToImpl(tnod) );
|
108
|
+
}
|
109
|
+
Bool TIDY_CALL tidyNodeIsCAPTION( TidyNode tnod )
|
110
|
+
{ return nodeIsCAPTION( tidyNodeToImpl(tnod) );
|
111
|
+
}
|
112
|
+
Bool TIDY_CALL tidyNodeIsTD( TidyNode tnod )
|
113
|
+
{ return nodeIsTD( tidyNodeToImpl(tnod) );
|
114
|
+
}
|
115
|
+
Bool TIDY_CALL tidyNodeIsTH( TidyNode tnod )
|
116
|
+
{ return nodeIsTH( tidyNodeToImpl(tnod) );
|
117
|
+
}
|
118
|
+
Bool TIDY_CALL tidyNodeIsTR( TidyNode tnod )
|
119
|
+
{ return nodeIsTR( tidyNodeToImpl(tnod) );
|
120
|
+
}
|
121
|
+
Bool TIDY_CALL tidyNodeIsCOL( TidyNode tnod )
|
122
|
+
{ return nodeIsCOL( tidyNodeToImpl(tnod) );
|
123
|
+
}
|
124
|
+
Bool TIDY_CALL tidyNodeIsCOLGROUP( TidyNode tnod )
|
125
|
+
{ return nodeIsCOLGROUP( tidyNodeToImpl(tnod) );
|
126
|
+
}
|
127
|
+
Bool TIDY_CALL tidyNodeIsBR( TidyNode tnod )
|
128
|
+
{ return nodeIsBR( tidyNodeToImpl(tnod) );
|
129
|
+
}
|
130
|
+
Bool TIDY_CALL tidyNodeIsA( TidyNode tnod )
|
131
|
+
{ return nodeIsA( tidyNodeToImpl(tnod) );
|
132
|
+
}
|
133
|
+
Bool TIDY_CALL tidyNodeIsLINK( TidyNode tnod )
|
134
|
+
{ return nodeIsLINK( tidyNodeToImpl(tnod) );
|
135
|
+
}
|
136
|
+
Bool TIDY_CALL tidyNodeIsB( TidyNode tnod )
|
137
|
+
{ return nodeIsB( tidyNodeToImpl(tnod) );
|
138
|
+
}
|
139
|
+
Bool TIDY_CALL tidyNodeIsI( TidyNode tnod )
|
140
|
+
{ return nodeIsI( tidyNodeToImpl(tnod) );
|
141
|
+
}
|
142
|
+
Bool TIDY_CALL tidyNodeIsSTRONG( TidyNode tnod )
|
143
|
+
{ return nodeIsSTRONG( tidyNodeToImpl(tnod) );
|
144
|
+
}
|
145
|
+
Bool TIDY_CALL tidyNodeIsEM( TidyNode tnod )
|
146
|
+
{ return nodeIsEM( tidyNodeToImpl(tnod) );
|
147
|
+
}
|
148
|
+
Bool TIDY_CALL tidyNodeIsBIG( TidyNode tnod )
|
149
|
+
{ return nodeIsBIG( tidyNodeToImpl(tnod) );
|
150
|
+
}
|
151
|
+
Bool TIDY_CALL tidyNodeIsSMALL( TidyNode tnod )
|
152
|
+
{ return nodeIsSMALL( tidyNodeToImpl(tnod) );
|
153
|
+
}
|
154
|
+
Bool TIDY_CALL tidyNodeIsPARAM( TidyNode tnod )
|
155
|
+
{ return nodeIsPARAM( tidyNodeToImpl(tnod) );
|
156
|
+
}
|
157
|
+
Bool TIDY_CALL tidyNodeIsOPTION( TidyNode tnod )
|
158
|
+
{ return nodeIsOPTION( tidyNodeToImpl(tnod) );
|
159
|
+
}
|
160
|
+
Bool TIDY_CALL tidyNodeIsOPTGROUP( TidyNode tnod )
|
161
|
+
{ return nodeIsOPTGROUP( tidyNodeToImpl(tnod) );
|
162
|
+
}
|
163
|
+
Bool TIDY_CALL tidyNodeIsIMG( TidyNode tnod )
|
164
|
+
{ return nodeIsIMG( tidyNodeToImpl(tnod) );
|
165
|
+
}
|
166
|
+
Bool TIDY_CALL tidyNodeIsMAP( TidyNode tnod )
|
167
|
+
{ return nodeIsMAP( tidyNodeToImpl(tnod) );
|
168
|
+
}
|
169
|
+
Bool TIDY_CALL tidyNodeIsAREA( TidyNode tnod )
|
170
|
+
{ return nodeIsAREA( tidyNodeToImpl(tnod) );
|
171
|
+
}
|
172
|
+
Bool TIDY_CALL tidyNodeIsNOBR( TidyNode tnod )
|
173
|
+
{ return nodeIsNOBR( tidyNodeToImpl(tnod) );
|
174
|
+
}
|
175
|
+
Bool TIDY_CALL tidyNodeIsWBR( TidyNode tnod )
|
176
|
+
{ return nodeIsWBR( tidyNodeToImpl(tnod) );
|
177
|
+
}
|
178
|
+
Bool TIDY_CALL tidyNodeIsFONT( TidyNode tnod )
|
179
|
+
{ return nodeIsFONT( tidyNodeToImpl(tnod) );
|
180
|
+
}
|
181
|
+
Bool TIDY_CALL tidyNodeIsLAYER( TidyNode tnod )
|
182
|
+
{ return nodeIsLAYER( tidyNodeToImpl(tnod) );
|
183
|
+
}
|
184
|
+
Bool TIDY_CALL tidyNodeIsSPACER( TidyNode tnod )
|
185
|
+
{ return nodeIsSPACER( tidyNodeToImpl(tnod) );
|
186
|
+
}
|
187
|
+
Bool TIDY_CALL tidyNodeIsCENTER( TidyNode tnod )
|
188
|
+
{ return nodeIsCENTER( tidyNodeToImpl(tnod) );
|
189
|
+
}
|
190
|
+
Bool TIDY_CALL tidyNodeIsSTYLE( TidyNode tnod )
|
191
|
+
{ return nodeIsSTYLE( tidyNodeToImpl(tnod) );
|
192
|
+
}
|
193
|
+
Bool TIDY_CALL tidyNodeIsSCRIPT( TidyNode tnod )
|
194
|
+
{ return nodeIsSCRIPT( tidyNodeToImpl(tnod) );
|
195
|
+
}
|
196
|
+
Bool TIDY_CALL tidyNodeIsNOSCRIPT( TidyNode tnod )
|
197
|
+
{ return nodeIsNOSCRIPT( tidyNodeToImpl(tnod) );
|
198
|
+
}
|
199
|
+
Bool TIDY_CALL tidyNodeIsFORM( TidyNode tnod )
|
200
|
+
{ return nodeIsFORM( tidyNodeToImpl(tnod) );
|
201
|
+
}
|
202
|
+
Bool TIDY_CALL tidyNodeIsTEXTAREA( TidyNode tnod )
|
203
|
+
{ return nodeIsTEXTAREA( tidyNodeToImpl(tnod) );
|
204
|
+
}
|
205
|
+
Bool TIDY_CALL tidyNodeIsBLOCKQUOTE( TidyNode tnod )
|
206
|
+
{ return nodeIsBLOCKQUOTE( tidyNodeToImpl(tnod) );
|
207
|
+
}
|
208
|
+
Bool TIDY_CALL tidyNodeIsAPPLET( TidyNode tnod )
|
209
|
+
{ return nodeIsAPPLET( tidyNodeToImpl(tnod) );
|
210
|
+
}
|
211
|
+
Bool TIDY_CALL tidyNodeIsOBJECT( TidyNode tnod )
|
212
|
+
{ return nodeIsOBJECT( tidyNodeToImpl(tnod) );
|
213
|
+
}
|
214
|
+
Bool TIDY_CALL tidyNodeIsDIV( TidyNode tnod )
|
215
|
+
{ return nodeIsDIV( tidyNodeToImpl(tnod) );
|
216
|
+
}
|
217
|
+
Bool TIDY_CALL tidyNodeIsSPAN( TidyNode tnod )
|
218
|
+
{ return nodeIsSPAN( tidyNodeToImpl(tnod) );
|
219
|
+
}
|
220
|
+
Bool TIDY_CALL tidyNodeIsINPUT( TidyNode tnod )
|
221
|
+
{ return nodeIsINPUT( tidyNodeToImpl(tnod) );
|
222
|
+
}
|
223
|
+
Bool TIDY_CALL tidyNodeIsQ( TidyNode tnod )
|
224
|
+
{ return nodeIsQ( tidyNodeToImpl(tnod) );
|
225
|
+
}
|
226
|
+
Bool TIDY_CALL tidyNodeIsLABEL( TidyNode tnod )
|
227
|
+
{ return nodeIsLABEL( tidyNodeToImpl(tnod) );
|
228
|
+
}
|
229
|
+
Bool TIDY_CALL tidyNodeIsH3( TidyNode tnod )
|
230
|
+
{ return nodeIsH3( tidyNodeToImpl(tnod) );
|
231
|
+
}
|
232
|
+
Bool TIDY_CALL tidyNodeIsH4( TidyNode tnod )
|
233
|
+
{ return nodeIsH4( tidyNodeToImpl(tnod) );
|
234
|
+
}
|
235
|
+
Bool TIDY_CALL tidyNodeIsH5( TidyNode tnod )
|
236
|
+
{ return nodeIsH5( tidyNodeToImpl(tnod) );
|
237
|
+
}
|
238
|
+
Bool TIDY_CALL tidyNodeIsH6( TidyNode tnod )
|
239
|
+
{ return nodeIsH6( tidyNodeToImpl(tnod) );
|
240
|
+
}
|
241
|
+
Bool TIDY_CALL tidyNodeIsADDRESS( TidyNode tnod )
|
242
|
+
{ return nodeIsADDRESS( tidyNodeToImpl(tnod) );
|
243
|
+
}
|
244
|
+
Bool TIDY_CALL tidyNodeIsXMP( TidyNode tnod )
|
245
|
+
{ return nodeIsXMP( tidyNodeToImpl(tnod) );
|
246
|
+
}
|
247
|
+
Bool TIDY_CALL tidyNodeIsSELECT( TidyNode tnod )
|
248
|
+
{ return nodeIsSELECT( tidyNodeToImpl(tnod) );
|
249
|
+
}
|
250
|
+
Bool TIDY_CALL tidyNodeIsBLINK( TidyNode tnod )
|
251
|
+
{ return nodeIsBLINK( tidyNodeToImpl(tnod) );
|
252
|
+
}
|
253
|
+
Bool TIDY_CALL tidyNodeIsMARQUEE( TidyNode tnod )
|
254
|
+
{ return nodeIsMARQUEE( tidyNodeToImpl(tnod) );
|
255
|
+
}
|
256
|
+
Bool TIDY_CALL tidyNodeIsEMBED( TidyNode tnod )
|
257
|
+
{ return nodeIsEMBED( tidyNodeToImpl(tnod) );
|
258
|
+
}
|
259
|
+
Bool TIDY_CALL tidyNodeIsBASEFONT( TidyNode tnod )
|
260
|
+
{ return nodeIsBASEFONT( tidyNodeToImpl(tnod) );
|
261
|
+
}
|
262
|
+
Bool TIDY_CALL tidyNodeIsISINDEX( TidyNode tnod )
|
263
|
+
{ return nodeIsISINDEX( tidyNodeToImpl(tnod) );
|
264
|
+
}
|
265
|
+
Bool TIDY_CALL tidyNodeIsS( TidyNode tnod )
|
266
|
+
{ return nodeIsS( tidyNodeToImpl(tnod) );
|
267
|
+
}
|
268
|
+
Bool TIDY_CALL tidyNodeIsSTRIKE( TidyNode tnod )
|
269
|
+
{ return nodeIsSTRIKE( tidyNodeToImpl(tnod) );
|
270
|
+
}
|
271
|
+
Bool TIDY_CALL tidyNodeIsU( TidyNode tnod )
|
272
|
+
{ return nodeIsU( tidyNodeToImpl(tnod) );
|
273
|
+
}
|
274
|
+
Bool TIDY_CALL tidyNodeIsMENU( TidyNode tnod )
|
275
|
+
{ return nodeIsMENU( tidyNodeToImpl(tnod) );
|
276
|
+
}
|
277
|
+
|
278
|
+
|
279
|
+
/*
|
280
|
+
* local variables:
|
281
|
+
* mode: c
|
282
|
+
* indent-tabs-mode: nil
|
283
|
+
* c-basic-offset: 4
|
284
|
+
* eval: (c-set-offset 'substatement-open 0)
|
285
|
+
* end:
|
286
|
+
*/
|