Changeset 223306 in webkit
- Timestamp:
- Oct 13, 2017 3:36:28 PM (7 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/imported/w3c/ChangeLog
r223279 r223306 1 2017-10-13 Chris Dumez <cdumez@apple.com> 2 3 DOMTokenList shouldn't add empty attributes 4 https://bugs.webkit.org/show_bug.cgi?id=178280 5 6 Reviewed by Ryosuke Niwa. 7 8 Rebaseline web-platform-test now that all checks are passing. 9 10 * web-platform-tests/dom/nodes/Element-classlist-expected.txt: 11 1 12 2017-10-13 Romain Bellessort <romain.bellessort@crf.canon.fr> 2 13 -
trunk/LayoutTests/imported/w3c/web-platform-tests/dom/nodes/Element-classlist-expected.txt
r220772 r223306 154 154 PASS classList.remove("aa ") with attribute value "aa " (HTML node) 155 155 PASS classList.toggle("aa ", false) with attribute value "aa " (HTML node) 156 FAIL classList.remove("a") with attribute value null (HTML node) assert_equals: wrong class after modification expected (object) null but got (string) "" 156 PASS classList.remove("a") with attribute value null (HTML node) 157 157 PASS classList.toggle("a", false) with attribute value null (HTML node) 158 158 PASS classList.remove("a") with attribute value "" (HTML node) … … 202 202 PASS classList.remove("d", "d") with attribute value "a b c " (HTML node) 203 203 PASS classList.remove() with attribute value "a b c " (HTML node) 204 FAIL classList.remove("a", "b") with attribute value null (HTML node) assert_equals: wrong class after modification expected (object) null but got (string) "" 204 PASS classList.remove("a", "b") with attribute value null (HTML node) 205 205 PASS classList.remove("a", "b") with attribute value "" (HTML node) 206 206 PASS classList.remove() with attribute value "a a" (HTML node) … … 437 437 PASS classList.remove("aa ") with attribute value "aa " (XHTML node) 438 438 PASS classList.toggle("aa ", false) with attribute value "aa " (XHTML node) 439 FAIL classList.remove("a") with attribute value null (XHTML node) assert_equals: wrong class after modification expected (object) null but got (string) "" 439 PASS classList.remove("a") with attribute value null (XHTML node) 440 440 PASS classList.toggle("a", false) with attribute value null (XHTML node) 441 441 PASS classList.remove("a") with attribute value "" (XHTML node) … … 485 485 PASS classList.remove("d", "d") with attribute value "a b c " (XHTML node) 486 486 PASS classList.remove() with attribute value "a b c " (XHTML node) 487 FAIL classList.remove("a", "b") with attribute value null (XHTML node) assert_equals: wrong class after modification expected (object) null but got (string) "" 487 PASS classList.remove("a", "b") with attribute value null (XHTML node) 488 488 PASS classList.remove("a", "b") with attribute value "" (XHTML node) 489 489 PASS classList.remove() with attribute value "a a" (XHTML node) … … 720 720 PASS classList.remove("aa ") with attribute value "aa " (MathML node) 721 721 PASS classList.toggle("aa ", false) with attribute value "aa " (MathML node) 722 FAIL classList.remove("a") with attribute value null (MathML node) assert_equals: wrong class after modification expected (object) null but got (string) "" 722 PASS classList.remove("a") with attribute value null (MathML node) 723 723 PASS classList.toggle("a", false) with attribute value null (MathML node) 724 724 PASS classList.remove("a") with attribute value "" (MathML node) … … 768 768 PASS classList.remove("d", "d") with attribute value "a b c " (MathML node) 769 769 PASS classList.remove() with attribute value "a b c " (MathML node) 770 FAIL classList.remove("a", "b") with attribute value null (MathML node) assert_equals: wrong class after modification expected (object) null but got (string) "" 770 PASS classList.remove("a", "b") with attribute value null (MathML node) 771 771 PASS classList.remove("a", "b") with attribute value "" (MathML node) 772 772 PASS classList.remove() with attribute value "a a" (MathML node) … … 1003 1003 PASS classList.remove("aa ") with attribute value "aa " (XML node with null namespace) 1004 1004 PASS classList.toggle("aa ", false) with attribute value "aa " (XML node with null namespace) 1005 FAIL classList.remove("a") with attribute value null (XML node with null namespace) assert_equals: wrong class after modification expected (object) null but got (string) "" 1005 PASS classList.remove("a") with attribute value null (XML node with null namespace) 1006 1006 PASS classList.toggle("a", false) with attribute value null (XML node with null namespace) 1007 1007 PASS classList.remove("a") with attribute value "" (XML node with null namespace) … … 1051 1051 PASS classList.remove("d", "d") with attribute value "a b c " (XML node with null namespace) 1052 1052 PASS classList.remove() with attribute value "a b c " (XML node with null namespace) 1053 FAIL classList.remove("a", "b") with attribute value null (XML node with null namespace) assert_equals: wrong class after modification expected (object) null but got (string) "" 1053 PASS classList.remove("a", "b") with attribute value null (XML node with null namespace) 1054 1054 PASS classList.remove("a", "b") with attribute value "" (XML node with null namespace) 1055 1055 PASS classList.remove() with attribute value "a a" (XML node with null namespace) … … 1286 1286 PASS classList.remove("aa ") with attribute value "aa " (foo node) 1287 1287 PASS classList.toggle("aa ", false) with attribute value "aa " (foo node) 1288 FAIL classList.remove("a") with attribute value null (foo node) assert_equals: wrong class after modification expected (object) null but got (string) "" 1288 PASS classList.remove("a") with attribute value null (foo node) 1289 1289 PASS classList.toggle("a", false) with attribute value null (foo node) 1290 1290 PASS classList.remove("a") with attribute value "" (foo node) … … 1334 1334 PASS classList.remove("d", "d") with attribute value "a b c " (foo node) 1335 1335 PASS classList.remove() with attribute value "a b c " (foo node) 1336 FAIL classList.remove("a", "b") with attribute value null (foo node) assert_equals: wrong class after modification expected (object) null but got (string) "" 1336 PASS classList.remove("a", "b") with attribute value null (foo node) 1337 1337 PASS classList.remove("a", "b") with attribute value "" (foo node) 1338 1338 PASS classList.remove() with attribute value "a a" (foo node) -
trunk/Source/WebCore/ChangeLog
r223298 r223306 1 2017-10-13 Chris Dumez <cdumez@apple.com> 2 3 DOMTokenList shouldn't add empty attributes 4 https://bugs.webkit.org/show_bug.cgi?id=178280 5 6 Reviewed by Ryosuke Niwa. 7 8 DOMTokenList shouldn't add empty attributes after: 9 - https://github.com/whatwg/dom/pull/488 10 11 Firefox and Chrome follow the latest spec. 12 13 No new tests, updating existing test. 14 15 * html/DOMTokenList.cpp: 16 (WebCore::DOMTokenList::updateAssociatedAttributeFromTokens): 17 Implement the first step of https://dom.spec.whatwg.org/#concept-dtl-update 18 1 19 2017-10-13 Jer Noble <jer.noble@apple.com> 2 20 -
trunk/Source/WebCore/html/DOMTokenList.cpp
r222613 r223306 249 249 ASSERT(!m_tokensNeedUpdating); 250 250 251 if (!m_element.hasAttribute(m_attributeName) && tokens().isEmpty()) 252 return; 253 251 254 // https://dom.spec.whatwg.org/#concept-ordered-set-serializer 252 255 StringBuilder builder;
Note: See TracChangeset
for help on using the changeset viewer.