XXX - TODO; make the default interface more ElementTree-like rather than DOM-like
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 }'
entitiesWindows1252 has to be ordered and needs to have an index.
Heading elements need to be ordered
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.
XXX What about event-source and command?
# File lib/feed_tools/vendor/html5/lib/html5/constants.rb, line 5 def self._(str); str end
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
Generated with the Darkfish Rdoc Generator 2.