[Bug 28148] New: Improve parsing of numbers for coords attribute

https://www.w3.org/Bugs/Public/show_bug.cgi?id=28148

            Bug ID: 28148
           Summary: Improve parsing of numbers for coords attribute
           Product: HTML WG
           Version: unspecified
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P2
         Component: HTML5 spec
          Assignee: dave.null@w3.org
          Reporter: travil@microsoft.com
        QA Contact: public-html-bugzilla@w3.org
                CC: mike@w3.org, public-html-admin@w3.org,
                    public-html-wg-issue-tracking@w3.org

For floating point arguments between 0 and 1 without a leading 0, the floating
point value simply drops the decimal.  So for example, <area shape="rect"
coords=".100, .100, 101, 101"> will result in a rect at "100, 100, 101, 101"
rather than something more expected like "0, 0, 101, 101".

On the other hand, there's no reason why the coords attribute shouldn't accept
a list of floating point values rather than integers, which could also
circumvent the problem.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Received on Thursday, 5 March 2015 21:36:01 UTC