improve html compatibility part 1