Bug 102699 - Support text/html in DOMParser.parseFromString(). r=smaug.

This commit is contained in:
Henri Sivonen
2012-01-20 14:03:49 +02:00
parent 2f46c398f1
commit 2c9c468406
18 changed files with 319 additions and 211 deletions

View File

@@ -246,8 +246,6 @@ nsHtml5Parser::Parse(const nsAString& aSourceBuffer,
bool aLastCall,
nsDTDMode aMode) // ignored
{
NS_PRECONDITION(!mExecutor->IsFragmentMode(),
"Document.write called in fragment mode!");
if (mExecutor->IsBroken()) {
return NS_ERROR_OUT_OF_MEMORY;
}
@@ -650,9 +648,6 @@ nsHtml5Parser::IsScriptCreated()
void
nsHtml5Parser::ParseUntilBlocked()
{
NS_PRECONDITION(!mExecutor->IsFragmentMode(),
"ParseUntilBlocked called in fragment mode.");
if (mBlocked || mExecutor->IsComplete() || mExecutor->IsBroken()) {
return;
}