Space handling
When you enter "a[any space]a" in a Div, HTML renders the same as chrome and IE: only one space is displayed.
innerHTML Property
- IE or two a plus a space,
- Chrome is the original input.
Enter
When you enter "a[carriage return [any space]a" in a Div, HTML renders the same as chrome and IE.
innerHTML Property
- IE is 3 characters, with a space in the middle of two A.
- Chrome is the original input and resolves the carriage return to \ n.
HTML markup
When you enter "A<br>a" html in the Div, the same is the case with chrome and IE.
innerHTML Property
- IE is a<br>a, the HTML tag is capitalized!
- Chrome is a<br>a, HTML tag lowercase
TextArea, carriage return
Entering a[carriage return]b,html in the textarea multiline input box is the same as for Chrome and IE.
Value property
- IE is 4 characters, the content is: A\R\NB
- Chrome is 3 characters, content is: A\NB
Reprinted from http://www.cnblogs.com/zjfree/