In Files

Class/Module Index [+]

Quicksearch

HTML5

XXX - TODO; make the default interface more ElementTree-like rather than DOM-like

Constants

ASCII_LETTERS
ASCII_LOWERCASE
ASCII_UPPERCASE
BOOLEAN_ATTRIBUTES
CDATA_ELEMENTS
CONTENT_MODEL_FLAGS
DIGITS
E
ENCODINGS
ENTITIES

ENTITIES was generated from Python using the following code:

import constants entities = constants.entities.items() entities.sort() list = [ ' '.join([repr(entity), '=>', ord(value)<128 and

repr(str(value)) or repr(value.encode('utf-8')).replace("'",'"')])
for entity, value in entities]
print '  ENTITIES = {\n    ' + ',\n    '.join(list) + '\n  }'
ENTITIES_WINDOWS1252

entitiesWindows1252 has to be ordered and needs to have an index.

FORMATTING_ELEMENTS
HEADING_ELEMENTS

Heading elements need to be ordered

HEX_DIGITS
Marker

The scope markers are inserted when entering buttons, object elements, marquees, table cells, and table captions, and are used to prevent formatting from "leaking" into tables, buttons, object elements, and marquees.

RCDATA_ELEMENTS
SCOPING_ELEMENTS
SPACE_CHARACTERS
SPECIAL_ELEMENTS
TABLE_INSERT_MODE_ELEMENTS
VERSION
VOID_ELEMENTS

XXX What about event-source and command?

Public Class Methods

_(str) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/constants.rb, line 5
def self._(str); str end
is_valid_encoding(encoding) click to toggle source

Determine if a string is a supported encoding

# File lib/feed_tools/vendor/html5/lib/html5/inputstream.rb, line 644
def self.is_valid_encoding(encoding)
  (not encoding.nil? and encoding.kind_of?(String) and ENCODINGS.include?(encoding.downcase.strip))
end
parse(stream, options={}) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5.rb, line 6
def self.parse(stream, options={})
  HTMLParser.parse(stream, options)
end
parse_fragment(stream, options={}) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5.rb, line 10
def self.parse_fragment(stream, options={})
  HTMLParser.parse(stream, options)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.