Sha256: 03e3583a228b3b00aa6de5e9201df3b13e4f4d55992583e799cc1f9088d0d99b

Contents?: true

Size: 1.51 KB

Versions: 18

Compression:

Stored size: 1.51 KB

Contents

/* $Id: ruby_xml_html_parser.c 710 2009-01-20 05:30:51Z cfis $ */

/* Please see the LICENSE file for copyright and distribution information */

#include "ruby_libxml.h"

/* Document-class: LibXML::XML::HTMLParser::Options
 *
 * Options to control the operation of the HTMLParser.  The easiest
 * way to set a parser's options is via the methods
 * XML::HTMLParser.file, XML::HTMLParser.io or XML::HTMLParser.string.
 * For additional control, see XML::HTMLParser::Context#options=.
*/

VALUE mXMLHtmlParserOptions;

void rxml_init_html_parser_options(void)
{
  mXMLHtmlParserOptions = rb_define_module_under(cXMLHtmlParser, "Options");


#if LIBXML_VERSION >= 20621
  /* 1: Relax parsing. */
  rb_define_const(mXMLHtmlParserOptions, "RECOVER", INT2NUM(HTML_PARSE_RECOVER)); 
#endif
  /* 32: Suppress error reports. */
  rb_define_const(mXMLHtmlParserOptions, "NOERROR", INT2NUM(HTML_PARSE_NOERROR)); 
  /* 64: Suppress warning reports. */
  rb_define_const(mXMLHtmlParserOptions, "NOWARNING", INT2NUM(HTML_PARSE_NOWARNING));
  /* 128: Enable pedantic error reporting. */
  rb_define_const(mXMLHtmlParserOptions, "PEDANTIC", INT2NUM(HTML_PARSE_PEDANTIC)); 
  /* 256: Remove blank nodes. */
  rb_define_const(mXMLHtmlParserOptions, "NOBLANKS", INT2NUM(HTML_PARSE_NOBLANKS)); 
#if LIBXML_VERSION >= 20621
  /* 2048: Forbid network access. */
  rb_define_const(mXMLHtmlParserOptions, "NONET", INT2NUM(HTML_PARSE_NONET)); 
  /* 65536: Compact small text nodes. */
  rb_define_const(mXMLHtmlParserOptions, "COMPACT", INT2NUM(HTML_PARSE_COMPACT));
#endif
}

Version data entries

18 entries across 18 versions & 3 rubygems

Version Path
libxml-ruby-2.0.0-x86-mingw32 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-2.0.0 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-r19mingw-1.1.4 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.4 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.4-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
coupa-libxml-ruby-1.1.4 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-0.9.9-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.0.0-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-0.9.9 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.0-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.0 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.0.0 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.3-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.3 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.2-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.2 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.1-x86-mswin32-60 ext/libxml/ruby_xml_html_parser_options.c
libxml-ruby-1.1.1 ext/libxml/ruby_xml_html_parser_options.c