Show
Ignore:
Timestamp:
03/22/08 02:50:54 (8 months ago)
Author:
eric@webkit.org
Message:

Reviewed by mjs.

Unify handling of NAMESPACE_ERR and fix Acid3 test 25
http://bugs.webkit.org/show_bug.cgi?id=16693

Test: fast/dom/DOMImplementation/createDocumentType-err.html

  • dom/DOMImplementation.cpp: (WebCore::DOMImplementation::createDocumentType): (WebCore::DOMImplementation::createDocument):
  • dom/DOMImplementation.idl:
  • dom/Document.cpp: (WebCore::Document::hasPrefixNamespaceMismatch): (WebCore::Document::createElementNS): (WebCore::Document::parseQualifiedName): (WebCore::Document::createAttributeNS):
  • dom/Document.h:
  • dom/Element.cpp: (WebCore::Element::setAttributeNS):
  • editing/FormatBlockCommand.cpp: (WebCore::FormatBlockCommand::doApply):
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/dom/Document.h

    r31144 r31231  
    593593 
    594594    // The following breaks a qualified name into a prefix and a local name. 
    595     // It also does a validity check, and returns false if the qualified name is invalid 
    596     // (empty string or invalid characters). 
    597     static bool parseQualifiedName(const String& qualifiedName, String& prefix, String& localName); 
     595    // It also does a validity check, and returns false if the qualified name 
     596    // is invalid.  It also sets ExceptionCode when name is invalid. 
     597    static bool parseQualifiedName(const String& qualifiedName, String& prefix, String& localName, ExceptionCode&); 
     598     
     599    // Checks to make sure prefix and namespace do not conflict (per DOM Core 3) 
     600    static bool hasPrefixNamespaceMismatch(const QualifiedName&); 
    598601     
    599602    void addElementById(const AtomicString& elementId, Element *element);