[Webkit-unassigned] [Bug 92991] New: itemType.add should treat \t as a space

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Aug 2 07:35:53 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=92991

           Summary: itemType.add should treat \t as a space
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: Unspecified
        OS/Version: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: arko at motorola.com
        Depends on: 92986


Fail- itemType.add should treat \t as a space assert_equals: expected "a\tb" but got "a\t b"

Sample test:
test(function () {
        var elem = makeEl('div',{itemtype:'a\t'});
        elem.itemType.add('b');
        assert_equals(elem.itemType.toString(),'a\tb');
}, 'itemType.add should treat \\t as a space');

Expected result: itemType.toString() should return "a\tb"
Actual: Returns "a\t b".

Please note that we have same issue in case of \r, \n and \f

Above can also be observed with following attributes:
itemref,
itemprop

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list