[Webkit-unassigned] [Bug 33725] New: .selectorText and .cssText on CSSRule don't escape '.' and ':'

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jan 15 10:58:28 PST 2010


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

           Summary: .selectorText and .cssText on CSSRule don't escape '.'
                    and ':'
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: CSS
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: ddkilzer at webkit.org
                CC: bdakin at apple.com


Created an attachment (id=46690)
 --> (https://bugs.webkit.org/attachment.cgi?id=46690)
Test case

* SUMMARY
According to the HTML4.01 Spec, an ID attribute _can_ contain the '.' and ':'
characters. <http://www.w3.org/TR/html401/struct/global.html#h-7.5.2>
Example: <li id="item1.1">

They would be matched in CSS by #item1\.1 { color: red; }

However CSSRule.selectorText and CSSRule.cssText would return this string
unescaped, so that one cannot disambiguate between:
<div id="hello.Text"> and <div id="hello" class="Text">

* STEPS TO REPRODUCE
1. Open attached test case.

* RESULTS
Test case fails.

* REGRESSION
Unknown, but probably not a regression.

-- 
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