Changeset 65814 in webkit


Ignore:
Timestamp:
Aug 23, 2010 9:34:54 AM (14 years ago)
Author:
andreas.kling@nokia.com
Message:

2010-08-23 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Tor Arne Vestbø.

setAttributeNS() should throw NAMESPACE_ERR for prefixed qualifiedName with null namespace
https://bugs.webkit.org/show_bug.cgi?id=44432

Test: fast/dom/setAttributeNS-prefix-and-null-namespace.html

  • dom/Element.cpp: (WebCore::Element::setAttributeNS): Throw NAMESPACE_ERR if namespace is null and the qualifiedName has a prefix.

2010-08-23 Andreas Kling <andreas.kling@nokia.com>

Reviewed by Tor Arne Vestbø.

setAttributeNS() should throw NAMESPACE_ERR for prefixed qualifiedName with null namespace
https://bugs.webkit.org/show_bug.cgi?id=44432

  • fast/dom/script-tests/setAttributeNS-prefix-and-null-namespace.js: Added.
  • fast/dom/setAttributeNS-prefix-and-null-namespace-expected.txt: Added.
  • fast/dom/setAttributeNS-prefix-and-null-namespace.html: Added.
Location:
trunk
Files:
3 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r65812 r65814  
     12010-08-23  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        setAttributeNS() should throw NAMESPACE_ERR for prefixed qualifiedName with null namespace
     6        https://bugs.webkit.org/show_bug.cgi?id=44432
     7
     8        * fast/dom/script-tests/setAttributeNS-prefix-and-null-namespace.js: Added.
     9        * fast/dom/setAttributeNS-prefix-and-null-namespace-expected.txt: Added.
     10        * fast/dom/setAttributeNS-prefix-and-null-namespace.html: Added.
     11
    1122010-08-23  Hironori Bono  <hbono@chromium.org>
    213
  • trunk/WebCore/ChangeLog

    r65813 r65814  
     12010-08-23  Andreas Kling  <andreas.kling@nokia.com>
     2
     3        Reviewed by Tor Arne Vestbø.
     4
     5        setAttributeNS() should throw NAMESPACE_ERR for prefixed qualifiedName with null namespace
     6        https://bugs.webkit.org/show_bug.cgi?id=44432
     7
     8        Test: fast/dom/setAttributeNS-prefix-and-null-namespace.html
     9
     10        * dom/Element.cpp:
     11        (WebCore::Element::setAttributeNS): Throw NAMESPACE_ERR if namespace is null
     12        and the qualifiedName has a prefix.
     13
    1142010-08-23  Ryuan Choi  <ryuan.choi@samsung.com>
    215
  • trunk/WebCore/dom/Element.cpp

    r65681 r65814  
    12141214        return;
    12151215
     1216    if (namespaceURI.isNull() && !prefix.isNull()) {
     1217        ec = NAMESPACE_ERR;
     1218        return;
     1219    }
     1220
    12161221    QualifiedName qName(prefix, localName, namespaceURI);
    12171222
Note: See TracChangeset for help on using the changeset viewer.