commit | 26b5369d478f5ef43d45ca0c7db8e48dadac35c9 | [log] [tgz] |
---|---|---|
author | xing.xu <xing.xu@intel.com> | Sat Oct 15 23:21:32 2016 |
committer | Commit bot <commit-bot@chromium.org> | Sat Oct 15 23:23:16 2016 |
tree | ea8db01c5332334deeda839110b74d7fa257917f | |
parent | 20c051a9a415b64187d410d0ec207c0442d784f5 [diff] |
Fix class name which has only space When length of className is 0, should return ClassStringContent::Empty, this is done by classStringHasClassName(const AtomicString& newClassString. If length >= 1 and only white space, should return ClassStringContent::WhiteSpaceOnly. Spec is here: https://dom.spec.whatwg.org/#dom-element-classname. This is from w3c-test: http://w3c-test.org/dom/nodes/Element-classlist.html. BUG=651744 Test=LayoutTests/imported/wpt/dom/nodes/Element-classlist.html Review-Url: https://codereview.chromium.org/2402223002 Cr-Commit-Position: refs/heads/master@{#425578}