Skip to content
  • beidson@apple.com's avatar
    2009-05-07 Brady Eidson <beidson@apple.com> · a19606b4
    beidson@apple.com authored
            Reviewed by Darin Adler and Alexey Proskuryakov.
    
            <rdar://problem/6863795> Exception occurs in Mail when attempting to create signatures due to <head> element creation
    
            * dom/Document.cpp:
            (WebCore::Document::implicitClose): Check shouldCreateImplicitHead() before creating it.
    
            * html/HTMLParser.cpp:
            (WebCore::HTMLParser::handleError): Check shouldCreateImplicitHead() before creating it.
            (WebCore::HTMLParser::bodyCreateErrorCheck): Ditto.
            (WebCore::shouldCreateImplicitHead): For Tiger/Leopard when running under Mail, the implicit <head> shouldn't be created.
            * html/HTMLParser.h:
            (WebCore::shouldCreateImplicitHead): Inline implementation for non-Tiger/Leopard platforms
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@43353 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    a19606b4