Many Minor Fixes

Fixed a whole bunch of minor stuff.
Had a go at getting some of the plethora of broken tests to pass.
This commit is contained in:
Jacques Distler 2007-06-12 17:37:55 -05:00
parent 0ddd422059
commit 2da672ec5b
13 changed files with 108 additions and 84 deletions

View file

@ -27,6 +27,8 @@ module HTML5lib
handle_end %w( address blockquote center div dl fieldset listing menu ol pre ul ) => 'Block'
handle_end HEADING_ELEMENTS => 'Heading'
handle_end %w( a b big em font i nobr s small strike strong tt u ) => 'Formatting'
handle_end %w( head frameset select optgroup option table caption colgroup col thead tfoot tbody tr td th ) => 'Misplaced'

View file

@ -78,7 +78,7 @@ module HTML5lib
class Element < Node
def to_s
"<%s>" % name
"<#{name}>"
end
def printTree indent=0