mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 546641 - Map to CR in the HTML5 parser. rs=sicking.
--HG-- extra : rebase_source : 0c021cc263ea7172b0f386be89a6e6d45fba23c0
This commit is contained in:
parent
7bc8dbf67a
commit
11c18b934e
@ -3394,9 +3394,6 @@ nsHtml5Tokenizer::handleNcrValue(PRInt32 returnState)
|
||||
|
||||
PRUnichar* val = nsHtml5NamedCharacters::WINDOWS_1252[value - 0x80];
|
||||
emitOrAppendOne(val, returnState);
|
||||
} else if (value == 0x0D) {
|
||||
|
||||
emitOrAppendOne(nsHtml5Tokenizer::LF, returnState);
|
||||
} else if (value == 0x0) {
|
||||
|
||||
emitOrAppendOne(nsHtml5Tokenizer::REPLACEMENT_CHARACTER, returnState);
|
||||
|
@ -239,6 +239,7 @@ nsHtml5TreeBuilder::characters(const PRUnichar* buf, PRInt32 start, PRInt32 leng
|
||||
case ' ':
|
||||
case '\t':
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\f': {
|
||||
switch(mode) {
|
||||
case NS_HTML5TREE_BUILDER_INITIAL:
|
||||
@ -3820,6 +3821,7 @@ nsHtml5TreeBuilder::charBufferContainsNonWhitespace()
|
||||
case ' ':
|
||||
case '\t':
|
||||
case '\n':
|
||||
case '\r':
|
||||
case '\f': {
|
||||
continue;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user