add a method argument to _IncrementalFileWriter
implement a etree.htmlfile that passes OUTPUT_METHOD_HTML to _IncrementalFileWriter
write_declaration now throws an exception for html files.